Saturday 13 September 2014

MySQL Process

How to kill all MySQL sleep process.

If you want to kill all sleep process in MySQL go to MySQL terminal and follow:-


mysql >select concat('KILL ',id,';') FROM information_schema.processlist where user='root' into outfile '/tmp/xyz.txt';
mysql> source /tmp/zyz.txt;​

No comments:

Post a Comment

Enable 'HTML Manager'- Apache Tomcat

 Enable 'HTML Manager'- Apache Tomcat Go to Apache-tomcat's home directory and edit the tomcat-users.xml ${apache_home}/conf/tom...