How to running and Shutting down MySQL Server?

You should have to first check, MySQL server is running or not. You can use the following command to check.

ps -ef | grepmysqld

If your MySql is running, then you will see mysqld process listed in your result. If server is not running, then you can start it by using the following command –

root@host# cd /usr/bin
 ./safe_mysqld& 
If you want to shut down your running MySQL server execute the following command.
root@host# cd /usr/bin
./mysqladmin -u root -p shutdown 
Enter password: ****** 

 

Leave a Reply

Your email address will not be published. Required fields are marked *