hasen's tech life

Twitter: @hasen

mysql.server startで"mysqladmin: connect to server at 'localhost' failed"と出たので.

$ mysql.server start
> 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!

$ vi ~/.my.cnf

$ mysql.server start
> Starting MySQL
> . SUCCESS!