View Single Post
Old 26th March 2013, 20:38
researcher7 researcher7 is offline
Junior Member
Join Date: Mar 2013
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts

Originally Posted by roe74979 View Post
Version: '5.5.29-0ubuntu0.12.10.1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)
There's the problem right there.

Your mysql client is looking for /tmp/mysql.sock while the actual file exist at

You need to modify your my.cnf (backup the file first) and change the [client] section to

socket = /var/lib/mysql/mysql.sock
Save, restart mysql server and then try to connect again.
Reply With Quote