mysql进程无法停止

2024-01-11

我最近在 Ubuntu 12.04 操作系统桌面上安装了 5.5.28-29.2 Percona Server (GPL),版本 29.2。我尝试使用不同的方法停止服务器:

- sudo /etc/init.d/mysql stop
- sudo kill -9 pid
- mysqladmin -u root -p shutdown

所有这些方法都会停止该进程,但它会在进程终止后自动启动。我已经检查了 syslog (/var/log/syslog/) 并且总是显示下一个跟踪:

Jan  4 17:50:44 kernel: [ 1915.494219] init: mysql main process (17311) killed by KILL signal
Jan  4 17:50:44 kernel: [ 1915.494245] init: mysql main process ended, respawning
Jan  4 17:50:44 kernel: [ 1915.500025] type=1400 audit(1357318244.557:48): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=18458 comm="apparmor_parser"
Jan  4 17:50:46 /etc/mysql/debian-start[18501]: Upgrading MySQL tables if necessary.
Jan  4 17:50:46 /etc/mysql/debian-start[18504]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Jan  4 17:50:46 /etc/mysql/debian-start[18504]: Looking for 'mysql' as: /usr/bin/mysql
Jan  4 17:50:46 /etc/mysql/debian-start[18504]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Jan  4 17:50:46 /etc/mysql/debian-start[18504]: This installation of MySQL is already upgraded to 5.5.28, use --force if you still need to run mysql_upgrade
Jan  4 17:50:46 /etc/mysql/debian-start[18515]: Checking for insecure root accounts.
Jan  4 17:50:46 /etc/mysql/debian-start[18520]: Triggering myisam-recover for all MyISAM tables

您知道进程自动重新启动的原因吗? 先感谢您!!


我遇到了同样的问题。运行kill命令会终止该进程,但在我的例子中,它会在不同的进程 ID 下再次弹出。

我能弄清楚如何永久阻止它的唯一方法是:

sudo stop mysql

Source: http://www.itfromscratch.com/how-to-stop-the-percona-mysql-server/ http://www.itfromscratch.com/how-to-stop-the-percona-mysql-server/

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

mysql进程无法停止 的相关文章

随机推荐