Tuesday, September 16, 2008

Can't connect to local MySQL server through socket '/tmp/mysql.sock

Can't connect to local MySQL server through socket '/tmp/mysql.sock

If you get this error message:

/usr/local/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

Run the following commands:

ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
/scripts/mysqlup --force

No comments: