Database connection error – only when I add new lines to wp-config file
-
I have an existing blog that I am now creating a network. I installed the network, but when I try adding the code it provides to the wp-config.php I get an “Error establishing database connection”. I get this error even when going to the original blog pages.
If I removed those lines from the wp-config then it works correctly again, so it would seem it is not an issue with the database settings.The lines that I am adding are
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, false );
$base = ‘/’;
define( ‘DOMAIN_CURRENT_SITE’, ‘www.MYSITE.com’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );
- The topic ‘Database connection error – only when I add new lines to wp-config file’ is closed to new replies.