MySQL数据库启动报The server quit without updating PID file
  TEZNKK3IfmPf 2023年11月14日 37 0

启动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!
【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月14日 0

暂无评论

推荐阅读
  TEZNKK3IfmPf   2024年05月31日   25   0   0 mysql
  TEZNKK3IfmPf   2024年05月17日   52   0   0 sqlmysql
  TEZNKK3IfmPf   2024年05月31日   31   0   0 数据库mysql
  TEZNKK3IfmPf   2024年05月17日   49   0   0 查询mysql索引
  TEZNKK3IfmPf   2024年05月17日   50   0   0 jsonmysql
  TEZNKK3IfmPf   2024年05月17日   49   0   0 mysqlphp
  TEZNKK3IfmPf   2024年05月31日   27   0   0 数据库mysql
TEZNKK3IfmPf