the server mysql56_MySQL数据库启动报The server quit without updating PID file

启动mysql时报如下错误[root@VM_26_56_centos data]# service mysqld start

Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/VM_26_56_centos.pid).

查看日志显示2017-03-14 15:49:28 27467 [Note] Server hostname (bind-address): '*'; port: 3306

2017-03-14 15:49:28 27467 [Note] IPv6 is not available.

2017-03-14 15:49:28 27467 [Note]   - '0.0.0.0' resolves to '0.0.0.0';

2017-03-14 15:49:28 27467 [Note] Server socket created on IP: '0.0.0.0'.

2017-03-14 15:49:28 27467 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use

2017-03-14 15:49:28 27467 [ERROR] Do you already have another mysqld server running on port: 3306 ?

2017-03-14 15:49:28 27467 [ERROR] Aborting

查看端口和进程[root@VM_26_56_centos data]# netstat -tulnp | grep 3306

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

[root@VM_26_56_centos data]# ps aux | grep 23115

root     17317  0.0  0.0 103252   892 pts/0    S+   10:58   0:00 grep 23115

mysql    23115  0.0  1.6 3337908 540464 ?      Sl   Feb22  22:20 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/VM_26_56_centos.err --pid-file=/usr/local/mysql/data/VM_26_56_centos.pid

[root@VM_26_56_centos data]#

kill掉再次启动[root@VM_26_56_centos local]# ps aux | grep 23115

root     17434  0.0  0.0 103252   892 pts/0    S+   11:00   0:00 grep 23115

[root@VM_26_56_centos local]# service mysqld start

Starting MySQL. SUCCESS!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值