退出的MySQL没有它重新启动上埃尔卡皮坦 [英] Quit MySQL without it restarting on El Capitan

查看:173
本文介绍了退出的MySQL没有它重新启动上埃尔卡皮坦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行OS X 10.11埃尔卡皮坦其内置的服务器堆栈(阿帕奇2.4.16,MySQL的26年6月5日)。

I'm running OS X 10.11 El Capitan with its built-in server stack (Apache 2.4.16, MySQL 5.6.26).

我需要退出mysql的,而是立即终止进程重新启动它。

I need to quit mysql, but killing the process immediately restarts it.

下面是我到目前为止已经试过:

Here's what I've tried so far:

$的ps aux | grep的MySQL的来获得回报PID

74 49484     1   0 10:23AM ??         0:00.46 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid --port=3307

然后, $ sudo的杀-9 49484 终止进程,但它马上用具有较高PID重新启动。

Then, $ sudo kill -9 49484 kills the process, but it immediately restarts with with a higher PID.

$ launchctl清单| grep的MySQL的没有返回值,所以没有什么 $ launchctl卸载

$ launchctl list | grep mysql returns nothing, so there is nothing to $ launchctl unload

$ /usr/local/mysql/support-files/mysql.server停止失败错误!MySQL服务器PID文件找不到!尽管MySQL正在运行和PID文件是最新的最新的/usr/local/mysql/data/mysqld.local.pid。

$ /usr/local/mysql/support-files/mysql.server stop fails with "ERROR! MySQL server PID file could not be found!" despite the fact that mysql is running and the PID file is up-to-date in /usr/local/mysql/data/mysqld.local.pid.

以上是所有建议的解决方案我对堆栈溢出,其中没有工作对我来说在埃尔卡皮坦找到。在优山美地,简单地查杀过程是足够了,但在埃尔卡皮坦更新,MySQL是立即重新启动。

The above are all suggested solutions I found on Stack Overflow, none of which work for me on El Capitan. On Yosemite, simply killing the process was sufficient but with the El Capitan update, mysql is immediately restarted.

感谢。

推荐答案

我发现下面的命令为我工作:

I found that the following commands worked for me:

要停止MySQL的:

sudo launchctl unload -F /Library/LaunchDaemons/com.mysql.mysql.plist

要启动MySQL:

sudo launchctl load -F /Library/LaunchDaemons/com.mysql.mysql.plist

这篇关于退出的MySQL没有它重新启动上埃尔卡皮坦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆