Wp-config.php Wordpress site
Congdaittb said 1 year, 11 months ago:
I have install wp on wordpress. That Ok, but when i transfer from local host to hosting at godaddy. I have edit wp_config.php with correct infomation: database, username, password, hostname. But when i have run my site, that have an report: “Error establishing a database connection”
But i have login hosting control with that infomation
Someone tell me how to fix this error, please
mike42 said 1 year, 11 months ago:
Typically, if you are receiving that error, it means that the connection string information in your wp-config.php file is incorrect. You would want to make sure that you have the correct information to allow your site to connect to your database properly.
You can use the information in the link below to check your hosting account settings, and ensure that they’re correct in your wp-config.php file:
Hope that helps.