尝试:
/usr/local/mysql/bin/mysqladmin -u root -p shutdown
要么:
sudo mysqld stop
要么:
sudo /usr/local/mysql/bin/mysqld stop
要么:
sudo mysql.server stop
如果 在OSX中 安装 Launchctl,则 可以尝试:
MacPortssudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql.plistsudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql.plist
注意:重新启动后,此设置将持续存在。
家酿二进制安装程序launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plistlaunchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stopsudo /Library/StartupItems/MySQLCOM/MySQLCOM startsudo /Library/StartupItems/MySQLCOM/MySQLCOM restart
我发现在:https :
//stackoverflow.com/a/102094/58768
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)