Home >Database >Mysql Tutorial >How to start, stop, and restart MySQL in Linux system

How to start, stop, and restart MySQL in Linux system

PHPz
PHPzforward
2023-05-31 19:06:113008browse

1. Startup

1. Start using service: service mysql start

2. Start using mysqld script: /etc/inint.d/ mysql start

3. Use safe_mysqld to start: safe_mysql&

2. Stop

1. Use service to start: service mysql stop

2. Use the mysqld script to start: /etc/inint.d/mysql stop

3. mysqladmin shutdown

3. Restart

1. Start using service: service mysql restart

2. Start using mysqld script: /etc/inint.d /mysql restart

4. Check mysql status

 >>mysql 1

How to start, stop, and restart MySQL in Linux system

Indicates that the service has been shut down successfully

The above is the detailed content of How to start, stop, and restart MySQL in Linux system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete