Home  >  Article  >  Database  >  How to restart MySQL in Linux system

How to restart MySQL in Linux system

PHPz
PHPzforward
2023-05-30 20:44:599795browse

1. Startup method

1. Use service to start: service mysqld start

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

3. Use safe_mysqld to start: safe_mysqld&

2. Stop

1. Use service to start: service mysqld stop

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

3. mysqladmin shutdown

3. Restart

1. Use service to start: service mysqld restart

2. Use mysqld script to start: /etc/inint.d/mysqld restart

The above is the detailed content of How to 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