Whenever I click on the "Stop MySQL Server" on mac, it either can't stop or just restart. However, rebooting will, but the minute I open the MySQL page, it starts up again! I tried kill, shutdown on terminal but to no avail...
try these 3 commands below:
brew services stop mysql
sudo launchctl unload /Library/LaunchDaemons/com.mysql.mysql.plist
sudo launchctl unload /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
Have you tried mysqladmin shutdown ?
Reference : https://dev.mysql.com/doc/refman/5.7/en/mysqladmin.html
http://dba.fyicenter.com/faq/mysql/Shutdown-Server-with-mysqladmin.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.