How to Deactivate All WordPress Plugins with phpMyAdmin

Plug and a toggle switch turned off representing deactivating WordPress plugins

WordPress plugins enhance your website’s functionality, but sometimes, a faulty plugin can break your site or lock you out of the admin dashboard. If you can’t access your WordPress dashboard to disable plugins manually, you can use phpMyAdmin to deactivate all plugins at once.

This guide will show you how to disable all WordPress plugins using phpMyAdmin, step by step.

Step-by-step infographic: Deactivate Plugins in phpMyAdmin
The process at a glance

1. Why Use phpMyAdmin to Deactivate Plugins?

There are several situations where you may need to deactivate all plugins manually:

  • White screen of death (WSOD): A faulty plugin may prevent WordPress from loading properly.
  • Admin dashboard inaccessible: Some plugins can block access to wp-admin.
  • Website crashes after plugin update: A plugin conflict may cause errors.

In these cases, phpMyAdmin provides a quick solution by allowing you to disable all plugins directly from your database.

2. How to Access phpMyAdmin

phpMyAdmin is a database management tool available in most web hosting control panels, such as cPanel and Plesk.

Steps to Open phpMyAdmin

  1. Log in to your web hosting account.
  2. Navigate to cPanel or your hosting dashboard.
  3. Look for the phpMyAdmin option and click it.
  4. In phpMyAdmin, locate your WordPress database (its name often includes “wp” or your site name).

3. Deactivating All Plugins Using phpMyAdmin

Once you have access to phpMyAdmin, follow these steps to disable all WordPress plugins:

Step 1: Open the wp_options Table

  1. In phpMyAdmin, find your WordPress database in the left panel.
  2. Click on the table named wp_options (your table prefix may vary, e.g., wp123_options).
  3. Look for the active_plugins row under the option_name column.

Step 2: Edit the active_plugins Row

  1. Locate the row with option_name = active_plugins (usually on the first page).
  2. Click Edit to modify the value.
  3. In the option_value field, delete the current data and replace it with: a:0:{}
  4. Click Save or Go to apply the changes.

Step 3: Check Your WordPress Dashboard

  • Go to your website and refresh the page.
  • Try logging into your WordPress wp-admin panel.
  • If successful, you should now be able to access your site without plugin-related issues.

4. Reactivating Plugins One by One

Once you regain access to WordPress, follow these steps:

  1. Navigate to Plugins > Installed Plugins in your WordPress dashboard.
  2. Reactivate your plugins one at a time to identify the problematic one.
  3. If a plugin causes issues again, deactivate it and look for an alternative or update it.

5. Alternative Methods to Disable Plugins

If you are not comfortable using phpMyAdmin, you can also disable plugins via:

  • File Manager / FTP: Rename the wp-content/plugins folder to plugins_disabled.
  • WP-CLI (for advanced users): Use command-line tools to deactivate plugins.

Before You Use phpMyAdmin to Deactivate Plugins: A Safety Checklist

Editing the database directly is powerful, so prepare carefully. A small mistake in the wrong table can affect your whole site. Complete these steps first:

  1. Export the database. In phpMyAdmin, open the Export tab and save a full copy. If something goes wrong, you can import it again.
  2. Copy the original value. Before you edit the active_plugins row, paste its current content into a text file. This list shows which plugins were active, which makes it easy to restore them later.
  3. Confirm the table prefix. Your tables may not start with wp_. Look for the table that ends with _options, such as abc_options.
  4. Use the correct database. If your hosting account contains several sites, make sure that you select the one that belongs to the broken website.

What the active_plugins Value Looks Like

WordPress stores the list of active plugins as a serialized PHP array. Replacing it with an empty array deactivates every plugin at once, without deleting any files or settings. The empty value is shown below.

a:0:{}

Paste this value into the option_value field of the active_plugins row and save the change. Do not type extra spaces or quotation marks, because serialized data is sensitive to formatting.

Deactivate Only One Plugin Instead of All of Them

If you already know which plugin caused the problem, you do not need to disable everything. A serialized array stores the number of items and the length of each path, so editing it by hand is risky. The safer option is to use your hosting File Manager or FTP and rename the plugin’s folder, for example from plugin-name to plugin-name-disabled. WordPress then treats the plugin as missing and deactivates it automatically.

What to Do After You Regain Access to the Dashboard

  1. Reactivate plugins one at a time, and reload the site after each one.
  2. When the problem returns, you have found the plugin that caused it.
  3. Check for an update, read the plugin’s support forum, or replace it with a better-maintained alternative.
  4. Keep a recent backup, and test major plugin updates on a staging site before you update the live website.

If the site shows a blank page instead of an error message, read our guide on how to fix the White Screen of Death on WordPress, which explains more ways to find the cause.

Frequently Asked Questions

Will I lose my plugin settings if I deactivate all plugins this way?

No. Deactivation does not delete the plugin files or the settings that are stored in the database. When you activate a plugin again, it normally keeps its previous configuration.

What if I do not have access to phpMyAdmin?

You can use FTP or a File Manager to rename the plugins folder to something else, such as plugins-old. WordPress will deactivate all plugins, and you can rename the folder back afterwards.

Once the problem is solved, our guide on how to install a plugin on your WordPress website explains how to add plugins safely.

Conclusion

Using phpMyAdmin to deactivate all WordPress plugins is a powerful troubleshooting method when you’re locked out of your site. By following the steps above, you can quickly regain access and resolve plugin-related issues.

If this process feels too technical or confusing, I’m here to help! Contact me for expert WordPress support and troubleshooting services.