之后:
brew install mysql
mysql_install_db
我尝试对MySQL服务器执行stop
操作:
$ mysql.server stop
Shutting down MySQL
.. ERROR! Manager of pid-file quit without updating file.
我如何修复上面的错误?谢谢!
信息:
$ mysql -v
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.51 Source distribution
发布于 2011-01-08 07:54:57
mysql的安装说明建议将/usr/local/Cellar/mysql/5.1.54/com.mysql.mysqld.plist
复制到~/Library/LaunchAgents
,以便Mac在您登录时自动启动mysqld。
如果您以这种方式设置了mysqld,那么在MacOSXv10.4和更高版本中控制LaunchAgents的launchd
进程将在mysqld进程被mysql.server stop
命令杀死后立即自动重启它。这可能是出现错误消息的原因,因为服务器正在自动重新启动。
刚在我的Mac上测试过了。运行mysql.server stop
命令十次,每次'launchd‘在大约一秒后重新启动msyqld进程。六次命令都以“成功!”结束。消息。四次以"ERROR!Manager of pid-file quit updating file“消息结束。
更新:我刚刚意识到我没有提到如何停止mysqld服务器,如果它是由launchd启动的。
下面是停止mysqld守护进程的命令。
launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
发布于 2010-12-05 22:01:49
您尝试过运行killall mysqld
吗
https://stackoverflow.com/questions/4066618
复制相似问题