Home > Database > Mysql Tutorial > body text

How to close mysql in ubuntu

WBOY
Release: 2022-05-27 15:58:54
Original
3744 people have browsed it

Method: 1. Use service to shut down, the syntax is "service mysql stop"; 2. Use the mysqld script to shut down, the syntax is "/etc/inint.d/mysql stop"; 3. Use "mysqladmin shutdown" The command is closed.

How to close mysql in ubuntu

The operating environment of this tutorial: Ubuntu 17.04 system, mysql8.0.22 version, Dell G3 computer.

How to shut down mysql in ubuntu

How to start/stop/restart MySQL

1. Startup method

1. Use service Start:

service mysql start
Copy after login

2. Use the mysqld script to start:

/etc/inint.d/mysql start
Copy after login

3. Use safe_mysqld to start:

safe_mysql&
Copy after login

2. Stop

1. Use service to stop:

service mysql stop
Copy after login

2. Use mysqld script to stop:

/etc/inint.d/mysql stop
Copy after login

3. mysqladmin shutdown

3. Restart

1. Start using service:

service mysql restart
Copy after login

2. Start using mysqld script:

/etc/inint.d/mysql restart
Copy after login

How to close mysql in ubuntu

Recommended learning: mysql video tutorial

The above is the detailed content of How to close mysql in ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!