Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

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

Today i moved some of my websites to a new server , but all of them are showing this error :


Code
2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11)
Code
Any possible solution?
Are you sure the path to your mysql.sock is correct? (assuming Linux, so do "cd /var/lib/mysql" and run "ls" without quotations, should list the file)
Okay , i fixed it by restarting mysql service , thanks.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by Jeffr0May 31, 2022 11:51 AM 9 412 May 31, 2022 11:51 AM
Last Post: Yoyo95
[PHP] by the6ixDec 7, 2018 01:24 PM 9 245 Dec 7, 2018 01:24 PM
Last Post: the6ix
[PHP] by yrnGarryApr 1, 2018 05:28 PM 17 551 Apr 1, 2018 05:28 PM
Last Post: Nachfolger