Restart, Start, Stop MySQL from the Command Line Terminal, OSX, Linux

To restart, start or stop MySQL server from the command line, type the following at the shell prompt…

On Linux start/stop/restart from the command line:

Some Linux flavours offer the service command too

or

On OS X to start/stop/restart MySQL from the command line:

mysql-start-stop-restart command line