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

Quote:
Originally Posted by roe74979 View Post
Code:
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
/var/run/mysqld/mysqld.sock

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

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