Reverting Multisite to Single - Error Establishing DB Connection (3 posts)

  1. Adam W. Warner
    Posted 4 years ago #

    Hi all,

    I am reverting a Multisite enabled install back to a single install and following the directions outlined here.

    Andrea_r says:

    Delete any extra sites you may have created. Move the content and users to the main blog or wherever you desire.

    Remove the lines we added in the wp-config.php file.

    Restore the .htaccess file to the default. One the multisite lines are gone from the config file, you can usually restore these by resaving the permalinks.

    Drop these global tables in the database:

    I've done all of this and the last step I do is to remove the Multisite lines from wp-config.php

    As soon as I do this, I get the dreaded Error Establishing Database Connection.

    As soon as I put them back, I'm good to go.

    Can someone point me in the right direction as to what I can look for and try?

  2. Axel13
    Posted 4 years ago #

    I've done the same recently, all went well.
    Perhaps you deleted too much in the wp-config?

    I deleted all content after:
    define('WP_DEBUG', false);

    and before:
    /* That's all, stop editing! Happy blogging. */

    In the .htaccess, you replaced the content with this?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress


  3. If you want to post your wp-config.php up in pastebin.com, make sure you delete your passwords, hashes and salts :) We can take a look.

Topic Closed

This topic has been closed to new replies.

About this Topic