Error establishing a database connection WPMS
-
Hi,
I tried to do these steps: https://ww.wp.xz.cn/support/topic/remove-primary-site?replies=2
First you have to go to Network Dashboard > Sites and edit the site you want to be the main site.
Change this to look like it’s your main site
Make certain you leave ‘Update siteurl and home as well’ checked! Then go to your wp-config.php, look for this line:
define(‘BLOG_ID_CURRENT_SITE’, 1);
Change it to the site ID you want to use as your main site. For example, I want site #3, aka, sample, to become my main site. Change it and save it.
Then you have to go back to your Sites and edit the old main site. Give it’s path a new name and press save, making sure you keep that checkbox checked.
Now I can’t get to my site anymore caused by a “Error establishing a database connection”. What to do?
Thank you in advance,
Jerome
The topic ‘Error establishing a database connection WPMS’ is closed to new replies.