Search This Blog

Running and Shutting down MySQL Server


First check if your MySQL server is running or not. You can use following command to check this:
ps -ef grep mysqld
If your MySql is running then you will see mysqld process listed out in your result. If server is not running then you can start it by using following command:
root@hoat# cd /usr/bin
./safe_mysqld &
Now if you want to shutdown an already running MySQL server then you can do it by using following command:
root@hoat# cd /usr/bin
./mysqladmin -u root -p shutdown
Enter password: ******