MySQL database: View, start and stop MySQL service commands

mysql5.7 and below

1. View mysql status

	service mysql status

2. Stop mysql

	service mysql stop

3. Start mysql

	service mysql start

mysql8.0 and above

1. View mysql status

	service mysqld status

2. Stop mysql

	service mysqld stop

3. Start mysql

	service mysqld start

Guess you like

Origin blog.csdn.net/weixin_43945983/article/details/108197287