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

How to kill the mysql process in linux

王林
Release: 2020-10-15 11:45:03
Original
7147 people have browsed it

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

2. Kill the mysql process

Use command:

sudo kill -9 mysql的进程号
Copy after login

3. Kill the mysqld process

Use command:

sudo killall mysqld
Copy after login

4. Check whether there is still a mysql process.

Use command:

ps
ps -e|grep mysql
Copy after login
Copy after login

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!

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
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template