首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Mysql过程不会死

Mysql过程不会死
EN

Server Fault用户
提问于 2013-07-26 14:15:58
回答 1查看 2.7K关注 0票数 2

我试图扼杀一个过程,但每次我这样做都会回来。这一过程如下:

我看过Mysql上的进程列表,什么都没有。

代码语言:javascript
复制
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --log-error=/var/lib/mysql/server.weloveyou.err --pid-file=/var/lib/mysql/server.weloveyou.com.pid

我调查过这些日志,这种情况一直在发生:

代码语言:javascript
复制
130726 13:32:03 [Note] /usr/sbin/mysqld: Normal shutdown

130726 13:32:03 [Note] Event Scheduler: Purging the queue. 0 events
130726 13:32:03  InnoDB: Starting shutdown...
130726 13:32:05  InnoDB: Shutdown completed; log sequence number 0 2115443139
130726 13:32:05 [Note] /usr/sbin/mysqld: Shutdown complete

130726 13:32:05 mysqld_safe mysqld from pid file /var/lib/mysql/server.weloveyou.pid ended
130726 13:32:05 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130726 13:32:05 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
130726 13:32:05 [Note] Plugin 'FEDERATED' is disabled.
130726 13:32:05  InnoDB: Initializing buffer pool, size = 8.0M
130726 13:32:05  InnoDB: Completed initialization of buffer pool
130726 13:32:06  InnoDB: Started; log sequence number 0 2115443139
130726 13:32:06 [Note] Event Scheduler: Loaded 0 events
130726 13:32:06 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.70-cll'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL)
130726 13:32:15 mysqld_safe Number of processes running now: 0
130726 13:32:15 mysqld_safe mysqld restarted
130726 13:32:15 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
130726 13:32:15 [Note] Plugin 'FEDERATED' is disabled.
130726 13:32:15  InnoDB: Initializing buffer pool, size = 8.0M
130726 13:32:15  InnoDB: Completed initialization of buffer pool
130726 13:32:15  InnoDB: Started; log sequence number 0 2115443139
130726 13:32:15 [Note] Event Scheduler: Loaded 0 events
130726 13:32:15 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.70-cll'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) 

有人有什么想法吗?

干杯

约翰

EN

回答 1

Server Fault用户

发布于 2013-07-26 14:28:48

mysql服务器运行两个进程,mysqld和mysqld_safe。如果您使用SIGKILL信号(9)杀死mysqld,mysqld_safe将恢复mysqld。如果你以标准的方式停止mysqld,或者用sigint(15)信号杀死它,mysqld_safe就会注意到它并结束。如果有紧急情况,记得总是先杀死-9 mysqld_safe .

在这种情况下,mysqld_safe似乎是在关机后重新启动的。你到底是怎么杀死mysql的?

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/526554

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档