Hi, Can someone please help me with this. When i go to my website homepage i get this error Error establishing a database connection i run on wordpress
Seems you aren't the first to experience this: https://wordpress.org/support/topic/the-infamous-error-establishing-a-database-connection Hope it helps!
Check your WP-Config file if it has your correct database information, if it does then check the mysql service if its running.
Hello, Please check the following. 1. Logins in the config file. 2. MySQL service is running or not. 3. Check if there is any DB corruption. 4. Also a stupid fix that works at times. In wp-config change localhost to 127.0.0.1 If you have shell access it will be easy to test. Type Mysql -u db_user -p db_name; Type the password of the msql user. If the above works then the MySQL db and config is fine. Check the hostname trick. Let me know if that helps.