WordPress plugins add features to your website. Sometimes, you might need to enable them from the database. This guide will show you how to do it.
Why You Might Need to Use the Database
There are reasons you might need to use the database to enable plugins:
- You can’t access the WordPress admin area.
- Your site is broken due to a faulty plugin.
- You need to activate a plugin quickly.

Credit: www.elegantthemes.com
Before You Begin
Before starting, ensure you have:
- Access to your website’s database.
- Basic knowledge of using a database.
- A backup of your database.
Steps to Access Your Database
First, you need to access your database. Follow these steps:
- Log in to your web hosting control panel.
- Find the database section (usually called phpMyAdmin).
- Select your WordPress database.

Credit: www.wpbeginner.com
Finding the Plugins Table
Next, you need to find the plugins table. It’s usually called wp_options. Follow these steps:
- In phpMyAdmin, click on the wp_options table.
- Look for the row with the option name active_plugins.
Editing the Active Plugins
Now, you need to edit the active plugins. Follow these steps:
- Click the Edit button next to the active_plugins row.
- In the option_value field, you will see a list of active plugins.
- Add the plugin you want to activate to this list.
- Click Save or Go to save your changes.
Example of Editing Active Plugins
Here is an example of how the option_value field might look:
a:1:{i:0;s:19:"plugin-directory/plugin-file.php";}
To add another plugin, it might look like this:
a:2:{i:0;s:19:"plugin-directory/plugin-file.php";i:1;s:24:"another-plugin-directory/plugin-file.php";}
Checking Your Changes
After saving your changes, check your WordPress site. The plugin should now be active.
Troubleshooting
If the plugin does not activate, check these:
- Make sure the plugin files are in the correct directory.
- Check for any typos in the plugin file names.
- Ensure your database changes were saved correctly.
Tips for Managing Plugins
Here are some tips for managing your plugins:
- Keep your plugins updated.
- Deactivate and delete unused plugins.
- Backup your site regularly.
Frequently Asked Questions
How Can I Enable A WordPress Plugin From The Database?
You need to access your WordPress database via phpMyAdmin. Modify the `wp_options` table.
What Is The `wp_options` Table?
It’s a table where WordPress stores site-wide settings. Includes plugins’ status.
Why Would I Activate A Plugin Via The Database?
Sometimes, the WordPress dashboard is inaccessible. The database method is a good alternative.
Is It Safe To Activate Plugins From The Database?
Yes, if done correctly. Always backup your database before making changes.
Conclusion
Enabling and activating WordPress plugins from the database is simple. Follow these steps carefully, and always backup your database first. This method can save you when you can’t access the admin area. Happy managing!