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
Release: 2023-05-31 19:06:11
forward
2997 people have browsed it

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
Copy after login

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template