没有 tmp mysql.sock_mysql 没有/tmp/mysql.sock是什么原因?

意外删除/tmp/mysql.sock

一时间的操作失误,将/tmp/mysql.sock删除了。导致不能连接数据库:(

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

(111)

检查:

bash$./mysqladmin --socket=/tmp/mysql.sock version

./mysqladmin: connect to server at 'localhost' failed

error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (11

1)'

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

bash# ./safe_mysqld

The file /usr/local/mysql/libexec/mysqld doesn't exist or is not executable

Please do a cd to the mysql installation directory and restart

this script from there as follows:

./bin/safe_mysqld.

bash$ ./mysqld

/data/mysql/bin/mysqld: Fatal error: Can't find messagefile '/usr/local/mysql/sh


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部