Sometimes i wonder what tech support are doing…
Or maybe i’m just too critical.
Or i’m just IT-savvy enough for my host / friend, to let me solve it by myself.
Anyway, thanks to FoxTwo.
For informing me on my site’s WordPress MySQL database error.
“Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.
* Are you sure you have the correct username and password?
* Are you sure that you have typed the correct hostname?
* Are you sure that the database server is running?
If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.”
What i did to fix it:
1) find file: wp-config.php
2) ensure mysql database name, user name and password is correct (eg. db_name, db_user and db_password)
3) change db_host to your direct mysql address (eg. mysql.domain.com)
4) leave the rest, upload and overwrite your old wp-config.php file
And if it still doesn’t work as planned, update your WordPress to the latest version and overwrite your wp-config.php file again.
If all the above fails, it could be due to server problem.
Please ask your web host to check their database server.
I wondered if it was due to the US host’s database… *ponders*
Grr… yes it was due to US host, changing its database server to a dedicated one, without sending out an email and informing its users. They assumed we would BROWSE / READ their forum dilligently for updates…
STOP ASSUMING AND DO YOUR JOB.
WE ARE PAYING TO HOST OUR SITES AND YOU AREN’T DOING YOUR PART OF THE DEAL!