cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error Establishing a Database Connection

I was posting a new article on my website using the wordpress console and out of the blue I lost connection to the server. I cannot access my wp-admin page, my ftp, my mysql.. nothing. Website is offline and has been ever since. There is not reported error with GoDaddy system so I have no idea what could have happened. 

 

This is the message I get while try to access the mysql database from cpanel:

The MySQL server is currently offline.

Error while connecting to MySQL: (XID c8eupk) Database Connect Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Error while connecting to MySQL: (XID c8eupk) Database Connect Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/cpanel/Cpanel/Mysql.pm line 173.

 

I have no idea what is it and how to fix it.. Any idea anyone?

 

Thanks!! Smiley Happy

1 REPLY 1

Re: Error Establishing a Database Connection

Well now it works, and again I dont know what happen! the website is http://www.everydayisajourney.org/ in case it happens again I leave this post open.