Home >Operation and Maintenance >Linux Operation and Maintenance >How to kill the mysql process in linux

How to kill the mysql process in linux

王林
王林Original
2020-10-15 11:45:037022browse

How to kill the mysql process under Linux: First execute the [ps -e | grep mysql] command to view the process number corresponding to the mysql process; then execute the [kill -9 mysql process number] command to kill the mysql process; Finally check whether the mysql process exists.

How to kill the mysql process in linux

1. Check the process number corresponding to the mysql program

(recommended tutorial: mysql video tutorial)

Use command:

ps
ps -e|grep mysql

2. Kill the mysql process

Use command:

sudo kill -9 mysql的进程号

3. Kill the mysqld process

Use command:

sudo killall mysqld

4. Check whether there is still a mysql process.

Use command:

ps
ps -e|grep mysql

Related recommendations: mysql tutorial

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

Statement:
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

Related articles

See more