mysql 启动失败

Posted jackylee92

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 启动失败相关的知识,希望对你有一定的参考价值。

1 mysql 启动时报:MySQL Daemon failed to start.并且启动失败

2 查看mysql log日志  less /var/log/mysqld.log

3 从两行error中

Can‘t start server: Bind on TCP/IP port: Address already in use

Do you already have another mysqld server running on port: 3306 ?

看出 mysqld   3306 端口被占用

 

4 查看什么服务占用3306端口

netstat -apn  | grep 3306 

tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      4025/mysqld  

5 杀死该进程后在启动

kill -9 4025 

成功!

以上是关于mysql 启动失败的主要内容,如果未能解决你的问题,请参考以下文章