Home >Database >Mysql Tutorial >服务器意外断电后MySQL无法启动

服务器意外断电后MySQL无法启动

WBOY
WBOYOriginal
2016-06-07 15:10:281859browse

服务器意外断电后启动MySQL数据库报错: Another MySQL daemon already running withthe same unix socket. 本地登录MySQL数据库

服务器意外断电后启动MySQL数据库报错:

Another MySQL daemon already running withthe same unix socket.

本地登录MySQL数据库提示:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

原因:

MySQL没有正常停止,机器重启后mysql.sock一直存在,,但机器重启后mysql实际上为启动的,所以呢需要把/var/lib/mysql 下的mysql.sock文件给删掉,然后就可以启动了。

本文永久更新链接地址

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn