<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPWife &#187; Plugin activation with WordPress database</title>
	<atom:link href="http://www.wpwife.com/category/plugin-activation-with-wordpress-database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpwife.com</link>
	<description>WPHelp: fix and optimise WP themes&#38;plugins</description>
	<lastBuildDate>Fri, 21 Nov 2025 12:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.38</generator>
	<item>
		<title>How to Enable / Activate WordPress Plugins from the Database</title>
		<link>http://www.wpwife.com/wordpress-plugins/how-to-enable-activate-wordpress-plugins-from-the-database</link>
		<comments>http://www.wpwife.com/wordpress-plugins/how-to-enable-activate-wordpress-plugins-from-the-database#comments</comments>
		<pubDate>Mon, 20 Feb 2023 09:41:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[Plugin activation with WordPress database]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress database]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[wordpress tutorial]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=162225</guid>
		<description><![CDATA[
<p>Are you looking to enable or activate plugins from the WordPress database? If you are unable to access your WordPress admin area and need to activate a plugin to restore your access, then you can do that from the WordPress database. In this article, we&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-enable-activate-wordpress-plugins-from-database/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-enable-activate-wordpress-plugins-from-database/">How to Enable / Activate WordPress Plugins from the Database</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Are you looking to enable or activate plugins from the WordPress database?</p>



<p>If you are unable to access your WordPress admin area and need to activate a plugin to restore your access, then you can do that from the WordPress database. </p>



<p>In this article, we will show you how to easily activate your WordPress plugins using the database.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/how-to-enable-activate-wordpress-plugins-from-the-database-og.png" alt="How to enable/activate WordPress plugins from the database" class="wp-image-163088" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/how-to-enable-activate-wordpress-plugins-from-the-database-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/how-to-enable-activate-wordpress-plugins-from-the-database-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4>When Should You Activate WordPress Plugins Using Database</h4>



<p>A number of <a href="https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/" title="50 Most Common WordPress Errors and How to Fix Them">common WordPress errors</a> can prevent a website owner from accessing the WordPress admin area. In most of those situations, the user is looking to <a href="https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/" title="How to Deactivate All Plugins When Not Able to Access WP-Admin">deactivate WordPress plugins without admin access</a>.</p>



<p>However in some situations, a website owner may need to activate certain plugins to restore access to their WordPress website. </p>



<p>For example, let&#8217;s assume an error is stopping you from accessing your <a href="https://www.wpbeginner.com/wp-tutorials/locked-out-of-wordpress-admin/" title="What To Do When You Are Locked Out of WordPress Admin (wp-admin)">WordPress dashboard</a>, and you have found a plugin that can fix that error. </p>



<p>Luckily, WordPress stores the active plugins information in your WordPress database. This means you can manually enter this information directly in the database and tell WordPress to activate a plugin. </p>



<p>The only condition is that the plugin must be installed on your WordPress site. Which means that it should be present in the plugins folder on your WordPress website. </p>



<p>With that being said, let&#8217;s see how you can easily enable/activate a plugin using the database.</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-enable-activate-wordpress-plugins-from-database/#aioseo-step-1-find-your-database-name-using-the-cpanel">Step 1. Find Your Database Name Using the Hosting Control Panel</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-enable-activate-wordpress-plugins-from-database/#aioseo-step-2">Step 2. Locate Active Plugins Option via PhpMyAdmin</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-enable-activate-wordpress-plugins-from-database/#aioseo-step-3-activate-a-plugin-using-phpmyadmin">Step 3. Activate a Plugin Using phpMyAdmin</a></li></ul></div>



<h4 id="aioseo-step-1-find-your-database-name-using-the-cpanel">Step 1. Find Your Database Name Using the Hosting Control Panel</h4>



<p>To activate your WordPress plugins using <a href="https://www.wpbeginner.com/beginners-guide/beginners-guide-to-wordpress-database-management-with-phpmyadmin/" title="Beginner’s Guide to WordPress Database Management with phpMyAdmin">phpMyAdmin</a>, first, you need to find out your WordPress database&#8217;s name.</p>



<p>Now, to find the name of your database, you need to log in to your web hosting dashboard. For this tutorial, we will be using <a href="https://www.wpbeginner.com/refer/bluehost/"  rel="noopener nofollow" title="Bluehost">Bluehost</a>. </p>



<p>If you are using a different hosting company, then your WordPress hosting dashboard may look slightly different. </p>



<p>Once you are on the cPanel, scroll down to the &#8216;Files&#8217; section and click the &#8216;File Manager&#8217; option.</p>



<figure class="wp-block-image size-full"><img width="680" height="308" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-at-file-manager.png" alt="Click at the file manager" class="wp-image-162708" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-at-file-manager.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/click-at-file-manager-300x136.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will open up the File Manager in a new window. Here you simply need to locate and click the <code>public_html</code> folder from the left column.</p>



<p>This will open up all the files that are stored in the <code>public_html</code> folder. Now, you simply need to locate and click the folder with your site&#8217;s name on it present under the &#8216;Name&#8217; column.</p>



<figure class="wp-block-image size-full"><img width="680" height="222" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/go-to-public-html-site-and-find-your-site-name.png" alt="Go to the publich_html file and find your site name" class="wp-image-162711" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/go-to-public-html-site-and-find-your-site-name.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/go-to-public-html-site-and-find-your-site-name-300x98.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Some users may instead see their WordPress files and folders installed inside public_html folder. </p>



<p>After you have opened up your WordPress site&#8217;s file, locate the <a href="https://www.wpbeginner.com/glossary/wp-config-php/" title="wp-config.php">wp-config.php </a>  file under the &#8216;Name&#8217; section and right-click on it.</p>



<p>This will open up a menu where you need to select the &#8216;View&#8217; option.</p>



<figure class="wp-block-image size-full"><img width="680" height="292" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-view.png" alt="Click View" class="wp-image-162712" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-view.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/click-view-300x129.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will open up the <code>wp-config.php</code> file in a new window where you can locate your database details.</p>



<p>We recommend that you copy and paste your database details including username and password into a notepad on your computer.</p>



<figure class="wp-block-image size-full"><img width="680" height="325" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/database-details.png" alt="Database details" class="wp-image-162713" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/database-details.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/database-details-300x143.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now you&#8217;ve successfully found your database&#8217;s name, let&#8217;s move to our next step.</p>



<h4 id="aioseo-step-2">Step 2. Locate Active Plugins Option via PhpMyAdmin</h4>



<p>After you have found out the name of your database, you need to go back to your <a href="https://www.wpbeginner.com/wordpress-hosting/" title="How to Choose the Best WordPress Hosting in 2023 (Compared)">WordPress hosting</a> control panel. </p>



<p>Once there, scroll down to the &#8216;Databases&#8217; section and click the &#8216;phpMyAdmin&#8217; option.</p>



<figure class="wp-block-image size-full"><img width="680" height="280" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-phpmyadmin-option.png" alt="Click the phpMyAdmin option in the cPanel" class="wp-image-162716" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-phpmyadmin-option.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/click-phpmyadmin-option-300x124.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will launch the phpMyAdmin app in a new browser tab.</p>


<div class="wpb-alert style-yellow">

<p><strong>Note:  </strong>Before you make any kind of changes, please make sure to <a href="https://www.wpbeginner.com/beginners-guide/how-to-make-a-wordpress-database-backup-manually/" title="How To Make a WordPress Database Backup Manually">create a complete backup of your database</a>. It will come in handy if anything goes wrong with the process.</p>

</div>


<p>Next, you simply need to click the &#8216;Database&#8217; tab from the navigation menu present at the top of the page. </p>



<p>Now, simply locate your WordPress database and click on the browse button to expand it. </p>



<figure class="wp-block-image size-full"><img width="680" height="164" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-database-tab.png" alt="Click the Database tab from the navigation menu" class="wp-image-162717" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-database-tab.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/click-database-tab-300x72.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will show your WordPress database tables. </p>



<p>Here, you will simply need to locate <code>wp_options</code> table and click browse next to it. </p>



<p><strong>Note:</strong> By default, WordPress uses wp_ as the prefix for table names. Your WordPress database table may have a different table prefix. </p>



<figure class="wp-block-image size-full"><img width="680" height="294" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-at-wp-option.png" alt="Click at wp-options" class="wp-image-162724" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-at-wp-option.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/click-at-wp-option-300x130.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Inside the <code>wp_options</code> table, you&#8217;ll need to find the row where option_name is set to<code>active_plugins</code>.</p>



<p>After that, click on the Edit link next to it. </p>



<figure class="wp-block-image size-full"><img width="680" height="252" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-activeplugins-option.png" alt="Click the Activate_Plugins option" class="wp-image-162725" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-activeplugins-option.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/click-activeplugins-option-300x111.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will open up a box where you can manually enter details to activate a plugin. </p>



<h4 id="aioseo-step-3-activate-a-plugin-using-phpmyadmin">Step 3. Activate a Plugin Using phpMyAdmin</h4>



<p id="aioseo-step-3-activate-a-plugin-using-phpmyadmin">WordPress stores the active plugins information in a special format so that it can be programatically accessed by the software. </p>



<p>In order to tell WordPress which plugins to activate, we&#8217;ll need to use that same format. </p>



<p id="aioseo-step-3-activate-a-plugin-using-phpmyadmin">First, we&#8217;ll start by entering the <code>option_value</code> as <code>a:1:</code> and then open up the curly bracket ({).</p>



<p>We are entering this value as 1 because we only want to activate one plugin. You have to change the value to the number of plugins you plan on activating.</p>



<figure class="wp-block-image size-full"><img width="680" height="137" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/add-option-value-1.png" alt="Add option value" class="wp-image-162739" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/add-option-value-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/add-option-value-1-300x60.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, we will be entering <code>i:0;</code> after the curly bracket. Here we are essentially assigning a serial number to our plugin. </p>



<p>Remember to always assign numbers starting from 0 instead of 1.</p>



<figure class="wp-block-image size-full"><img width="680" height="155" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/add-serial-number.png" alt="Add serial number" class="wp-image-162740" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/add-serial-number.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/add-serial-number-300x68.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, we will be entering the number of characters present in the plugin&#8217;s name and the php file name of the plugin that we&#8217;re about to activate.</p>



<p>For that, we will type <code>s:24:</code> in the box. Keep in mind that the number of characters will differ for each plugin based on the characters in the plugin directory and file name.</p>



<p>For instance, we are activating <a href="https://wpforms.com/"  title="WPForms - Drag &amp; Drop WordPress Form Builder">WPForms</a> in this tutorial which has 24 characters in its name including the file name of the plugin as stored in our file manager.</p>



<figure class="wp-block-image size-full"><img width="680" height="131" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/add-character-number-1.png" alt="Add character number" class="wp-image-162730" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/add-character-number-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/add-character-number-1-300x58.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you just need to type the plugin&#8217;s directory name. You can find it by visiting the /wp-content/plugins/ folder using the File Manager app. </p>



<p>Don&#8217;t forget to add quotation marks before typing the plugin&#8217;s directory name. </p>



<figure class="wp-block-image size-full"><img width="680" height="134" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/type-plugin-name-1.png" alt="Type the plugins' name" class="wp-image-162732" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/type-plugin-name-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/type-plugin-name-1-300x59.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After the /, you need to enter the plugin&#8217;s file name. This is usually the file with similar name inside the plugin folder. </p>



<figure class="wp-block-image size-full"><img width="680" height="336" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/pugin-file-folder.png" alt="Plugin file and folder name" class="wp-image-166386" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/pugin-file-folder.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/pugin-file-folder-300x148.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, go back to phpMyAdmin and type the name of the plugin and then close the quotation marks. </p>



<p>After that, simply add a semi-colon (;) and close the curly brackets (}). The final value in this example would look like this: </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
a:1:{i:0;s:24:&quot;wpforms-lite/wpforms.php&quot;;}
</pre></div>


<p>This is how it will look once you&#8217;re done.</p>



<figure class="wp-block-image size-full"><img width="680" height="210" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/finalsample.png" alt="Activating a single plugin" class="wp-image-166397" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/finalsample.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/finalsample-300x93.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, simply click the &#8216;Go&#8217; button to execute the command.</p>



<p>Now go visit your WordPress dashboard and head over to <strong>Plugins » Installed Plugins</strong>.</p>



<p>Your plugin has been successfully activated.</p>



<figure class="wp-block-image size-full"><img width="680" height="298" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/activated-plugin.png" alt="activated-plugin" class="wp-image-162737" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/activated-plugin.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/activated-plugin-300x131.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now let&#8217;s say you want to activate two more plugins. </p>



<p>First you will need to change the number of plugins. After you will adjust each entry for the plugin that you want to activate. </p>



<p>Here is an example: </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
a:3:{
i:0;s:47:&quot;all-in-one-seo-pack-pro/all_in_one_seo_pack.php&quot;;
i:1;s:35:&quot;insert-headers-and-footers/ihaf.php&quot;;
i:2;s:24:&quot;wpforms-lite/wpforms.php&quot;;
}
</pre></div>


<p><strong>Note:</strong> We have added line breaks here to make the code look more readable. You need to make sure that there are no line breaks or spaces in your code. Otherwise, it wouldn&#8217;t work. </p>



<p>We hope you learned how to activate a plugin using the database. You may also want to see our guide on <a href="https://www.wpbeginner.com/plugins/how-to-add-your-social-media-feeds-to-wordpress-step-by-step/" title="How to Add Your Social Media Feeds to WordPress (Step by Step)">how to add social media feeds to WordPress</a>, and our comparison of <a href="https://www.wpbeginner.com/beginners-guide/how-to-choose-the-best-domain-registrar/" title="How to Choose the Best Domain Registrar in 2023 (Compared)">the best domain registrars in the world</a>.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-enable-activate-wordpress-plugins-from-database/">How to Enable / Activate WordPress Plugins from the Database</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/wordpress-plugins/how-to-enable-activate-wordpress-plugins-from-the-database/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
	</channel>
</rss>
