Home > Article > Operation and Maintenance > How to kill the mysql process in linux
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.
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!