14,959
edits
| Line 196: | Line 196: | ||
=== Show the MySQL process list & kill the process === | === Show the MySQL process list & kill the process === | ||
Show the MySQL process list & kill the process (especial for SLOW query command)<ref>[http://dev.mysql.com/doc/refman/5.1/en/show-processlist.html MySQL :: MySQL 5.1 Reference Manual :: 13.7.5.31 SHOW PROCESSLIST Syntax]</ref> | Show the MySQL process list & kill the process (especial for SLOW query command)<ref>[http://dev.mysql.com/doc/refman/5.1/en/show-processlist.html MySQL :: MySQL 5.1 Reference Manual :: 13.7.5.31 SHOW PROCESSLIST Syntax]</ref> | ||
# {{kbd | key=mysql -h HOST -u ACCOUNT -p }} And keyin the PASSWORD for your MySQL ACCOUNT to connect the MySQL server. The first character will be changed to ''mysql>'' from ''$'' or ''#'' | # {{kbd | key=mysql -h HOST -u ACCOUNT -p }} And keyin the PASSWORD for your MySQL ACCOUNT to connect to the MySQL server. The first character will be changed to ''mysql>'' from ''$'' or ''#'' | ||
# mysql> {{kbd | key=SHOW FULL PROCESSLIST\G}} to show the process list | # mysql> {{kbd | key=SHOW FULL PROCESSLIST\G}} to show the process list | ||
# mysql> {{kbd | key=kill 101;}} to kill the process with Id number: 101 | # mysql> {{kbd | key=kill 101;}} to kill the process with Id number: 101 | ||