WordPress Help

Disable one WordPress plugin from the database

When troubleshooting an error on your WordPress site, it may be necessary to disable one or more plugins. If you can't access your WordPress dashboard, you can disable a plugin from the site's database. If you're not sure which plugin is causing the issue, enable WordPress debug to find out.

Warning: You should always make a backup of your site before making changes in the database. Also, disabling one or more plugins may affect the way your site looks and functions.
  1. Sign in to phpMyAdmin.
  2. In phpMyAdmin, on the left menu, select the name of the database your site uses.
    Note: If you have more than one database in your hosting account, you can check your wp-config.php file to find out which database your site uses.
  3. Select the wp_options table (select the text, not the checkbox).
    Note: Some databases have prefixes different than wp_, so focus on finding and selecting the table with _options in the name.
  4. On the right side, in the list of entries, find active_plugins. It’s usually on the second page of entries.
  5. Next to the active_plugins entry, select Edit.
  6. In the option_value row, select all the text in the field and copy it to a text editor of your choice. Once the text is copied to a safe place, you can edit it in phpMyAdmin.
  7. In phpMyAdmin, find the plugin you want to disable and delete its reference. You should delete everything from i: to ”; for that plugin.
    phpMyAdmin selected WordPress plugin.
  8. Update a:X, where X matches the number of active plugins on your site. For example, if you previously had four active plugins, a:4 should be changed to a:3 when you deactivate one plugin.
    phpMyAdmin WordPress deactivated plugin number.
  9. Select Go to apply the change and deactivate the plugin.

Related steps

More info

Share this article