Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

来源:互联网 发布:网络系统集成工程师 编辑:程序博客网 时间:2024/05/22 00:50


[root@datanode01 bin]# /usr/local/mysql/bin/mysqladmin -u root password 'root'
/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!
解决:
ln -s /usr/local/mysql/mysql.sock /tmp/mysql.sock 

阅读全文
0 0
原创粉丝点击