![]() |
|
[PHP] 2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183) +---- Thread: [PHP] 2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (/showthread.php?tid=3624614) |
2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' - Dir50 - Jul 16, 2013 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?* - Menoz - Jul 16, 2013 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) * - Dir50 - Jul 16, 2013 Okay , i fixed it by restarting mysql service , thanks. |