Wednesday, June 1, 2011

Mysql Issue

Yesterday I installed Mysql on my laptop. After running mysqld_safe it always gave me the same error information:

wipa-43-181:~ ZHENGFU$ mysqladmin version
/usr/local/mysql/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!

Seems like the mysql server did not start so the socket file was not created. Does anyone know how to figure it out?

No comments:

Post a Comment