I was working on my Wordpress site today and everything seemed fine.
I restarted the computer and left for 5 minutes and came back and suddenly neither of my websites were working.
Even when someone else tries to access my site they get the same error
"Error establishing a database connection"
Looking in the Godaddy help people say it must mean that my password is incorrect.. but this doesn't make sense because the error even shows for people who are just trying to view the webpage...
Any idea what's going on here?
Solved! Go to Solution.
Every time your website is accessed, a database connection is established...
Please check the above URL to know how to resolve this issue...
If You are using CPanel and other methods did not work for you to fix this problem ( Error establishing a database connection ) you may try this one too.
Go to Godaddy Cpanel Dashboard --> Databases --> MySQL® Databases
Look at the Modify Databases
Find your database username and select it and click "Check Database" button.
See if there is any problem in your databases and if there is any problem, go back to the last page and find your database username and select it and click "Repair Database" button.
Go to Godaddy Cpanel Dashboard --> Software --> PHP Processes
and press "Kill Processes" button
If you find my replies helpful, give me a like or kudo
And if I solved your issue, mark it as a solution
Amir - IT Pro | Mysteryofiran.com