After install, able to access dashbooard, but database connection error on site
-
I’m moving a WordPress blog from GoDaddy to DirectAdmin. I created a mySQL database in DirectAdmin, uploaded my WordPress files via FTP, and changed wp-config.php to the following:
(‘DB_NAME’, ‘xxxxxxx’);
(‘DB_USER’, ‘xxxxxxx’);
(‘DB_PASSWORD’, ‘xxxxxxx’); //
(‘DB_HOST’, ‘localhost’); //I’ve triple-checked: the DB name, user name, and password are correct. I’m using ‘localhost’ for DB_HOST, as directed in WordPress and DirectAdmin support.
Now, when I go to https://mywebsite.com/wp-admin I see the WordPress dashboard fine. But when I go to https://mywebsite.com I get this error:
“Error establishing a database connection”
What am I doing wrong? Please help! Thanks in advance!
- The topic ‘After install, able to access dashbooard, but database connection error on site’ is closed to new replies.