Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-07 15:10:28
Original
1808 people have browsed it

服务器意外断电后启动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文件给删掉,然后就可以启动了。

本文永久更新链接地址

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!