Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' error


Biancoblu

Recommended Posts

Posted

PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/username/public_html/includes/functions/database.php on line 19

 

 

I see this error frequently in my error log, my host tells me that when they restore somebody's database they have to restart the MySQL service on the server which causes that error and a brief outage.

 

I don't know much about how servers function, is it normal that they restart MySQL each time they restore a client's DB? I am on a shared server.

 

Thanks

Isabella

~ Don't mistake my kindness for weakness ~

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...