Stopping and Restarting Your MySQL Server
Stopping MySQL
- To stop your MySQL server, make sure you are in your mysql directory, and then type./bin/mysqladmin -u root -p shutdownThis lets the mysqladmin utility know that you want to shut down MySQL running as user root (-u root), and that you will enter a password (-p).
- Starting MySQL
- To start up your MySQL server again, connect to your MySQL host and then typecd ~/mysql
./bin/mysqld_safe &