FAQ-Shutting Down the MySQL Database

Publication Date:  2014-10-29 Views:  143 Downloads:  0
Issue Description
Shutting Down the MySQL Database
Solution
Prerequisites:
You have logged in to the server over the BMC WebUI on a PC. For details, see Log In to the RH2285 Server over the BMC WebUI.

Solution:

1) Log in to the server as user root, right-click on the desktop, and choose Open Terminal to open the CLI.

2) Run the following command to check whether the database is running.

> /etc/init.d/mysql status
MySQL running (26617)             done
If the preceding information is displayed, the database is running.

3) If the database is running, run the following command to shut down the database.

# su - mysql -c '/etc/init.d/mysql stop'
Shutting down MySQL.                                                  done

If the preceding information is displayed, the database is successfully shut down.



END