Hosting Question? Find the Solution - Browse our Guides, Articles, and How-To's

How to use PHPMyAdmin to change themes and plugins for WordPress

Category: WordPress

In this guide we’ll be showing how to do the following two things through PHPMyAdmin.

  • Change/deactivate plugins
  • Change your theme

This process is rather straightforward but due to the nature of editing databases we do recommend that you create a backup prior to beginning any work!

Deactivating WordPress Plugins

This process may be a little intimidating for those who are unfamiliar with how WordPress utilizes plugins via the database.

They use a long string that looks like this


To understand what this is; we’ll break it down.

‘a:8:’ is the number of active plugins. This string currently has 8 active plugins. This number and the length of the line changes depending on how many plugins are active.

The easiest thing to do when troubleshooting plugins is to just wipe it back to default.

However, first we need to get there.

You’re going to want to login to your cPanel account and navigate to PHPMyAdmin

Once inside you’re going to see a list of your databases on the left – in this case; we’re using ‘khtest_wp’ – we’ll then go to the ‘wp_options’ table.

Within this next page you’ll see a bunch of data in what is called ‘rows’ – rows are numerical and start from 1.

We’ll want to go to ‘page 2’ and search for row 33; you’ll see the following

We’ll want to modify this value. You can do this by double-clicking on it and it’ll enlarge the text place to modify.

At this point; if you want to reset the entire active plugin we replace that entire line with the following


This deactivates all plugins that are currently active and marks them as disabled.

Once you’ve modified the field; click outside of the row to save the changes.

If you want to be advanced and disable only a specific plugin you would need to change the active number of plugins and remove the plugin from the line.


If I wanted to remove just one plugin;

a:8: becomes a:7: and then I’ll remove my redirection plugin ‘i:5;s:27:”redirection/redirection.php”;’ and delete it from the line which gives me the following


Now I only have 7 active plugins and I can login to my WordPress dashboard again.

However, the easiest solution due to the ability to simply re-enable plugins in WordPress is most likely to just deactivate all plugins as noted earlier in this guide.

Changing WordPress Theme

There may be some instances where you’re unable to change the theme due to site-code issues or incompatibility issues at the result of upgrading PHP or perhaps WordPress was updated but your theme developer didn’t push their update in time and now your website is broken or perhaps you just want to be able to know how to change it through other means than the WordPress dashboard.

This is possible through PHPMyAdmin section of your server.

You’re going to want to login to your cPanel account and navigate to PHPMyAdmin

Once inside you’re going to see a list of your databases on the left – in this case; we’re using ‘khtest_wp’ – we’ll then go to the ‘wp_options’ table.


Have a WordPress website? Check out our Managed WordPress Hosting and see if we are a good fit for you. KnownHost offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready to help you should you need our assistance. You’re not using KnownHost for the best webhosting experience? Well, why not?