Home >Database >Mysql Tutorial >How to shut down mysql server
How to shut down the mysql server: first log in as the root user; then execute the [/etc/init.d/mysqld stop] command. If you want to start mysql server, execute the [/etc/init.d/mysqld start] command.
To open/close/restart MySql Server, first log in as the root account.
(Recommended tutorial: mysql video tutorial)
If you are using RedHat/Fedora, then you can use these commands:
Open:
/etc/init.d/mysqld start
Close:
(Related tutorial recommendations: mysql tutorial)
/etc/init.d/mysqld stop
Restart:
/etc/init.d/mysqld restart
The above is the detailed content of How to shut down mysql server. For more information, please follow other related articles on the PHP Chinese website!