ohh*_*hho 15 mysql macos homebrew
后:
brew install mysql
mysql_install_db
我尝试stopMySQL服务器:
$ 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
Ali*_*lan 33
mysql的安装说明建议复制/usr/local/Cellar/mysql/5.1.54/com.mysql.mysqld.plist到,~/Library/LaunchAgents以便Mac OS X在您登录时自动启动mysqld.
如果您以这种方式设置mysqld,那么launchd控制Mac OS X v10.4及更高版本中的LaunchAgents 的进程将在命令终止后立即自动重启mysqld进程mysql.server stop.这可能是错误消息的原因,因为服务器正在自动重新启动.
刚刚在我的Mac上测试了这个.执行mysql.server stop命令十次,每次'launchd'在大约一秒后重新启动msyqld进程.六次命令以"成功"结束!信息.四次以"错误!pid文件管理器退出而不更新文件"消息结束.
更新:刚刚意识到我没有提到如果mysqld服务器是由launchd启动的话.
这是停止mysqld守护进程的命令.
launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
| 归档时间: | 
 | 
| 查看次数: | 13926 次 | 
| 最近记录: |