The following articles mainly introduce the actual MySQL start and stop operations. I believe that if you have mastered the practical technology of MySQL start and stop operations, it will be of great help in future studies or work. The following describes the specific content of the article.
1. Start
After the MySQL installation is complete, run the following command when the MySQL Startup File is in the/etc/init. d directory.
- [root@test1 init.d]# /etc/init.d/MySQL start
2. Stop
- /usr/bin/MySQLadmin -u root -p shutdown
3. Automatic Start
1) Check whether MySQL is in the automatic MySQL startup list
- [root@test1 local]# /sbin/chkconfig --list
2) Add MySQL to the startup Service Group of your system.
- [root@test1 local]# /sbin/chkconfig --add MySQL
3) Delete MySQL from the startup Service Group.
- [root@test1 local]# /sbin/chkconfig --del MySQL
The above content is an introduction to MySQL startup and shutdown. I hope you will get some benefits.