Disable WordPress plugins through phpMyAdmin

by Mahesh Kukreja on June 16, 2009

  • Share
  • Sharebar
  • Share

I recently encountered some problem with my WordPress blog after updating it to version 2.8. Due to this update, the plugins also needed to be updated. So, while doing that, there was some problem and my blog wasn’t ready to open. So, I thought of disabling all the plugins and start over again.

But, my admin page was also not opening. So, I searched for methods that would disable plugins without logging in to WP-Admin.

I found out that the plugins could be disabled through phpMyAdmin.

Here are the steps to disable plugins through phpMyAdmin:

Login to phpMyAdmin:

phpmyadmin
This can be done through cPanel.

Browse to your blog’s database:

phpmyadmin

By default, you will be in Structure tab. Switch on to SQL tab, which is besides Structure tab.

phpmyadmin

Run SQL Query:

Navigate to the “active_plugins” column of the “wp_options” table using the following SQL query (edit the default WordPress table prefix “wp_” if needed):

SELECT * FROM wp_options WHERE option_name = 'active_plugins';

phpmyadmin

Once the active_plugins column appears, click to edit it. You will see something similar to the following, depending on the number and type of plugins you have installed:

phpmyadmin

a:26:{i:0;s:19:"akismet/akismet.php";i:1;s:43:"all-in-one-seo-pack/all_in_one_seo_pack.php";i:2;s:25:"blog-stats/blog-stats.php";i:3;s:14:"copyescape.php";i:4;s:31:"dd-formmailer/dd-formmailer.php";i:5;s:36:"google-sitemap-generator/sitemap.php";i:6;s:32:"login-lockdown/loginlockdown.php";i:7;s:18:"mybloglog_wp_2.php";i:8;s:33:"related-sites/RelatedWebsites.php";i:9;s:21:"sociable/sociable.php";i:10;s:23:"statpress/statpress.php";i:11;s:23:"tweetmeme/tweetmeme.php";i:12;s:27:"tweetmyblog/tweetmyblog.php";i:13;s:37:"twittercounter/ald-twittercounter.php";i:14;s:53:"what-would-seth-godin-do/what_would_seth_godin_do.php";i:15;s:17:"wp-ban/wp-ban.php";i:16;s:29:"wp-dbmanager/wp-dbmanager.php";i:17;s:21:"wp-email/wp-email.php";i:18;s:43:"wp-google-analytics/wp-google-analytics.php";i:19;s:27:"wp-imagefit/wp-imagefit.php";i:20;s:61:"wp-limit-posts-automatically/wp-limit-posts-automatically.php";i:21;s:27:"wp-pagenavi/wp-pagenavi.php";i:22;s:29:"wp-postviews/wp-postviews.php";i:23;s:33:"wp-security-scan/securityscan.php";i:24;s:21:"wp-table/wp-table.php";i:25;s:31:"wp-useronline/wp-useronline.php";}

That entire array of code represents every active plugin on your site. Thus, to quickly disable all plugins without using the WP Admin area, highlight the entire block of code, cut it out, and paste it into a safe, offline text file. After removing the code, click the button to save your changes and that’s it. All WordPress plugins are now deactivated (yet still installed, and with all plugin options intact). This obviously is a huge time-saver that really comes in handy during those mission-critical, time-sensitive situations where every second counts. Once you are ready to re-activate your entire set of plugins, simply cut/copy & paste the preserved code back into the “active_plugins” field. Click save and done. Again, don’t forget to backup your database before editing it ;)

Alternately, here is a one-second query to disable all plugins:

UPDATE wp_options SET option_value = '' WHERE option_name = 'active_plugins';

Upon execution, this query will clear the active_plugins field of all active plugins, effectively disabling (without uninstalling or modifying) the entire set. This method is great if you plan on re-enabling each plugin individually, say, after resolving some heinous server error. Whereas the previous technique makes it easy to re-enable all plugins en masse, this query is perfect for simply “nuking” all active plugins with no remorse. ;)

Subscribe to Email Newsletter

First Name *
Email *
Email Marketing Services You Can Trust

Incoming search terms:

  • wordpress remove plugin not possible
  • disable plugins wordpress phpmyadmin
  • wordpress disable plugin phpmyadmin
  • disable plugins phpmyadmin
  • disable wordpress plugins
  • dissable plugin wordpress
  • wordpress disable bwps
  • disable plugin wordpress
  • wordpress disable plugin
  • disable plugin phpmyadmin

Related Posts
Related Websites

{ 15 comments… read them below or add one }

sutenm@gmail.com June 20, 2009 at 12:02 am

Thank toy for information.

Reply

Lemonade diet January 3, 2010 at 10:41 pm

Nice information. Thank a lot..

Reply

Jason Koertge February 10, 2010 at 7:19 pm

I just wrote a post on how to do this for our readers. This is exactly how I did it. Great post. I love the alternative command you provide – learned something new! Love it!

Reply

Lanre February 28, 2010 at 7:40 am

Thank you so much, I used to have the same issue, I was worried for weeks. Thanks again for making this knowledge available for others.

Reply

GunturAF June 28, 2010 at 7:19 am

thanks for your article! this is very very help me when yesterday I get stuck with Admin SSL plugin where causing I can’t accessing my wp-admin page.

thank you very much! :)

Reply

Career Outlook August 13, 2010 at 8:50 pm

Its a very useful post though I am not much techie but you explained it very well.

Reply

Mat October 10, 2010 at 11:13 pm

I would like to say…Thank you so much.

Reply

Ted November 7, 2010 at 4:36 am

Your post has been a big help. Thank you so much!

Reply

Sebastyne January 4, 2011 at 10:41 am

Thanks for this – you’re a life saver. Had my blog completely inaccessible and I couldn’t find a way to disable all the plugins. :)
Sebastyne recently posted..To Understand- To Unite

Reply

gommu February 5, 2011 at 7:48 pm

whoah…thank you brother… very helpful. finally i can access my dashboard again. hahhaa..

Reply

maryan March 4, 2011 at 12:52 pm

wow very detail tutorial. your screenshot help me for understand it. thank you very much for posting this.

Reply

Smithson May 29, 2011 at 7:10 pm

Hi – I am certainly delighted to discover this. great job!

Reply

tom peditto October 13, 2011 at 9:39 pm

worked for me too! saved me bumpkins.

Reply

hugh October 30, 2011 at 8:25 am

Thanks for the tip. Second time this happened to me…. and now I know how to fix it.
hugh recently posted..Presentation version .vs Archival version of Digital Audio files

Reply

Samuel December 14, 2011 at 8:02 pm

Thank so much man!! Really appreciate this! You rock :)

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge
 

Previous post:

Next post: