sql >> Base de Datos >  >> RDS >> Mysql

Cómo detener mysqld

Prueba:

/usr/local/mysql/bin/mysqladmin -u root -p shutdown 

O:

sudo mysqld stop

O:

sudo /usr/local/mysql/bin/mysqld stop

O:

sudo mysql.server stop

Si instala Launchctl en OSX puedes probar:

Puertos Mac

sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql.plist

Nota:esto persiste después de reiniciar.

Cerveza casera

launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

Instalador binario

sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
sudo /Library/StartupItems/MySQLCOM/MySQLCOM restart

Lo encontré en:https://stackoverflow.com/a/102094/58768