Disabling WordPress plugins via phpMyAdmin involves making changes to your WordPress database directly. This method should only be used if you’re comfortable working with databases and have a backup of your website in case anything goes wrong. Here’s a step-by-step guide on how to disable plugins using phpMyAdmin:
Important: Before proceeding, make sure you have a full backup of your website and database.
- Access phpMyAdmin:
- Log in to your web hosting control panel.
- Locate the phpMyAdmin tool and access it. This might be in your hosting dashboard under a section related to databases.
- Select the WordPress Database:
- In phpMyAdmin, find the list of databases on the left-hand side.
- Select the database that corresponds to your WordPress website.
- Browse the
wp_optionsTable:- Inside your WordPress database, look for the
wp_optionstable (the table prefix “wp_” might be different if you’ve changed it during installation). - Click on the
wp_optionstable to browse its contents.
- Inside your WordPress database, look for the
- Locate the Active Plugins:
- Look for rows with the
option_namefield containing"active_plugins". - Click on the “Browse” button next to this row to view its content.
- Look for rows with the
- Edit the
active_pluginsValue:- In the
option_valuecolumn of theactive_pluginsrow, you’ll find a serialized array of active plugins. - Copy the value to a text editor and save it as a backup.
- Now, clear the value in the
option_valuecolumn. This effectively disables all plugins.
- In the
- Reactivate Required Plugins (Optional):
- After disabling all plugins, you can reactivate the ones you want to keep.
- In the serialized array you copied earlier, locate the plugins you want to keep, and add their paths back into the array.
- Save Changes:
- Once you’ve edited the
active_pluginsvalue, click the “Go” button to save the changes.
- Once you’ve edited the
- Clear Caches (If Needed):
- Clear any caching mechanisms you might be using, as they might still reference the old plugin settings.
- Check Your Website:
- Go to your WordPress website and check if the plugins have been disabled.