Changed Site URL in Multisite, Error Establishing Database in Wp-Admin
-
So, when I set up the multisite I stupidly set the main site to “www.danoyes.com”
We were experiencing some redirect issues when people typed in danoyes.com so we decided to change the main site URL to simply danoyes.com
I did a database find all and replace.
wp-config:
define(‘DOMAIN_CURRENT_SITE’, ‘danoyes.com’);
define(‘WP_HOME’,’https://danoyes.com’);
define(‘WP_SITEURL’,’https://danoyes.com’);functions.php:
update_option( ‘siteurl’, ‘https://danoyes.com’ );
update_option( ‘home’, ‘https://danoyes.com’ );The weird thing is my site works just fine, but I can’t access wp-admin. When I try to access wp-admin it says “error establishing database connection”
I’ve already ran “repair database” with no success.
Thoughts?
- The topic ‘Changed Site URL in Multisite, Error Establishing Database in Wp-Admin’ is closed to new replies.