
上QQ阅读APP看书,第一时间看更新
Stopping the MySQL 8.0 server
Stopping MySQL and checking the status are similar to starting it, except for the change of one word:
- Using service:
shell> sudo service mysqld stop
Redirecting to /bin/systemctl stop mysqld.service
- Using init.d:
shell> sudo /etc/init.d/mysql stop
[ ok ] Stopping mysql (via systemctl): mysql.service.
- If your installation includes the systemd support (refer to the Managing MySQL Server with systemd section):
shell> sudo systemctl stop mysqld
- Using mysqladmin:
shell> mysqladmin -u root -p shutdown