Example of how to start and stop MySQL

Source: Internet
Author: User

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.

 
 
  1. [root@test1 init.d]# /etc/init.d/MySQL start  

2. Stop

 
 
  1. /usr/bin/MySQLadmin -u root -p shutdown  

3. Automatic Start

1) Check whether MySQL is in the automatic MySQL startup list

 
 
  1. [root@test1 local]# /sbin/chkconfig --list  

2) Add MySQL to the startup Service Group of your system.

 
 
  1. [root@test1 local]# /sbin/chkconfig --add MySQL  

3) Delete MySQL from the startup Service Group.

 
 
  1. [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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.