<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mass killing of MySQL Connections</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:23:57 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrew Watson</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/comment-page-1/#comment-569160</link>
		<dc:creator>Andrew Watson</dc:creator>
		<pubDate>Fri, 29 May 2009 16:38:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=694#comment-569160</guid>
		<description>I do this:

mysqladmin proc  &#124; grep Sleep &#124; sort -r -n -k6 &#124; awk {&#039;print $1; &#039;} &#124; xargs mysqladmin kill 

or something to that effect...</description>
		<content:encoded><![CDATA[<p>I do this:</p>
<p>mysqladmin proc  | grep Sleep | sort -r -n -k6 | awk {&#8217;print $1; &#8216;} | xargs mysqladmin kill </p>
<p>or something to that effect&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glynn Durham</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/comment-page-1/#comment-569037</link>
		<dc:creator>Glynn Durham</dc:creator>
		<pubDate>Fri, 29 May 2009 10:39:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=694#comment-569037</guid>
		<description>How about a technique like this:

. File optimizeworld.sfs:
---
# Optimize tables in the World database.
SELECT &#039;OPTIMIZE TABLE &#039;, CONCAT(TABLE_SCHEMA, &#039;.&#039;, TABLE_NAME, &#039;;&#039;)
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = &#039;World&#039;;
---

. To execute:

shell&gt; mysql --skip-column-names &lt; optimizeworld.sfs &#124; mysql</description>
		<content:encoded><![CDATA[<p>How about a technique like this:</p>
<p>. File optimizeworld.sfs:<br />
&#8212;<br />
# Optimize tables in the World database.<br />
SELECT &#8216;OPTIMIZE TABLE &#8216;, CONCAT(TABLE_SCHEMA, &#8216;.&#8217;, TABLE_NAME, &#8216;;&#8217;)<br />
FROM INFORMATION_SCHEMA.TABLES<br />
WHERE TABLE_SCHEMA = &#8216;World&#8217;;<br />
&#8212;</p>
<p>. To execute:</p>
<p>shell&gt; mysql &#8211;skip-column-names &lt; optimizeworld.sfs | mysql</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/comment-page-1/#comment-567892</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 27 May 2009 16:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=694#comment-567892</guid>
		<description>I see,

Standard MySQL is not what we call &quot;our&quot; MySQL :)</description>
		<content:encoded><![CDATA[<p>I see,</p>
<p>Standard MySQL is not what we call &#8220;our&#8221; MySQL <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/comment-page-1/#comment-567886</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Wed, 27 May 2009 15:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=694#comment-567886</guid>
		<description>No Percona patches yet, unfortunately.  We&#039;re running the standard MySQL 5.0.77 on Centos.</description>
		<content:encoded><![CDATA[<p>No Percona patches yet, unfortunately.  We&#8217;re running the standard MySQL 5.0.77 on Centos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/comment-page-1/#comment-567878</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 27 May 2009 15:34:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=694#comment-567878</guid>
		<description>Bryan,

Which version of Percona patches are you running ? It exists in recent ones for sure.

Thanks for command line version though.</description>
		<content:encoded><![CDATA[<p>Bryan,</p>
<p>Which version of Percona patches are you running ? It exists in recent ones for sure.</p>
<p>Thanks for command line version though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/comment-page-1/#comment-567874</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Wed, 27 May 2009 15:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=694#comment-567874</guid>
		<description>If information_schema.processlist doesn&#039;t exist on your version of MySQL, this works in a linux script:

#!/bin/bash
for each in `mysqladmin -u root -prootpwd processlist &#124; awk &#039;{print $2, $4, $8}&#039; &#124; grep $dbname &#124; grep $dbuser &#124; awk &#039;{print $1}&#039;`;
do mysqladmin -u root -prootpwd kill $each;
done</description>
		<content:encoded><![CDATA[<p>If information_schema.processlist doesn&#8217;t exist on your version of MySQL, this works in a linux script:</p>
<p>#!/bin/bash<br />
for each in `mysqladmin -u root -prootpwd processlist | awk &#8216;{print $2, $4, $8}&#8217; | grep $dbname | grep $dbuser | awk &#8216;{print $1}&#8217;`;<br />
do mysqladmin -u root -prootpwd kill $each;<br />
done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/comment-page-1/#comment-565205</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 22 May 2009 16:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=694#comment-565205</guid>
		<description>Thanks Chip,

The good thing with having it done on SQL level is  you do not need to install everything -  not every server running MySQL has working perl python on php installed</description>
		<content:encoded><![CDATA[<p>Thanks Chip,</p>
<p>The good thing with having it done on SQL level is  you do not need to install everything &#8211;  not every server running MySQL has working perl python on php installed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Stuifzand</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/comment-page-1/#comment-565155</link>
		<dc:creator>Peter Stuifzand</dc:creator>
		<pubDate>Fri, 22 May 2009 12:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=694#comment-565155</guid>
		<description>A few years ago I wrote an article about how to use Vim with mysql to generate and execute SQL statements. It&#039;s here: http://peterstuifzand.nl/external-programs-in-vim.html</description>
		<content:encoded><![CDATA[<p>A few years ago I wrote an article about how to use Vim with mysql to generate and execute SQL statements. It&#8217;s here: <a href="http://peterstuifzand.nl/external-programs-in-vim.html" rel="nofollow">http://peterstuifzand.nl/external-programs-in-vim.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chip Turner</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/comment-page-1/#comment-565037</link>
		<dc:creator>Chip Turner</dc:creator>
		<pubDate>Fri, 22 May 2009 06:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=694#comment-565037</guid>
		<description>Check out mypgrep.py from the google mysql tools project on code.google.com.  It basically is a supercharged process grep for mysql, including the ability to kill processes.</description>
		<content:encoded><![CDATA[<p>Check out mypgrep.py from the google mysql tools project on code.google.com.  It basically is a supercharged process grep for mysql, including the ability to kill processes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/21/mass-killing-of-mysql-connections/comment-page-1/#comment-565012</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 22 May 2009 05:24:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=694#comment-565012</guid>
		<description>Shlomi,

Yes... This is a design bug which is waiting to be fixed for years.</description>
		<content:encoded><![CDATA[<p>Shlomi,</p>
<p>Yes&#8230; This is a design bug which is waiting to be fixed for years.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
