<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Poli Bou &#187; Runtime</title>
	<atom:link href="http://www.polibou.com/tag/runtime/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.polibou.com</link>
	<description>People. Places. Things.</description>
	<lastBuildDate>Wed, 08 Jun 2011 22:56:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>ntsysv &#8211; Linux Service Manager</title>
		<link>http://www.polibou.com/2010/02/02/ntsysv-linux-service-manager/</link>
		<comments>http://www.polibou.com/2010/02/02/ntsysv-linux-service-manager/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 22:43:22 +0000</pubDate>
		<dc:creator>Poli</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ntsysv]]></category>
		<category><![CDATA[Runtime]]></category>
		<category><![CDATA[Service]]></category>

		<guid isPermaLink="false">http://www.polibou.com/?p=359</guid>
		<description><![CDATA[I was configuring some Linux boxes today and discovered the ntsysv utility. This is a great command to see what services are loaded during startup. It pops up a simple GUI where you can enable and and disable services. Just run it at the terminal. Update: Configuring more boxes on different Linux distros. If ntsysv [...]]]></description>
			<content:encoded><![CDATA[<p>I was configuring some Linux boxes today and discovered the ntsysv utility.  This is a great command to see what services are loaded during startup.  It pops up a simple GUI where you can enable and and disable services.  Just run it at the terminal.</p>
<p><a href="http://www.polibou.com/wp-content/uploads/2010/02/ntsysv.gif" rel="lightbox[359]"><img src="http://www.polibou.com/wp-content/uploads/2010/02/ntsysv-300x212.gif" alt="" title="ntsysv" width="300" height="212" class="aligncenter size-medium wp-image-361" /></a></p>
<p>Update:<br />
Configuring more boxes on different Linux distros.  If ntsysv isn&#8217;t available for that distro you can use an equivalent utility called sysv-rc-conf.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.polibou.com/2010/02/02/ntsysv-linux-service-manager/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Kill A Running MySQL Query</title>
		<link>http://www.polibou.com/2009/06/01/kill-a-running-mysql-query/</link>
		<comments>http://www.polibou.com/2009/06/01/kill-a-running-mysql-query/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 22:40:26 +0000</pubDate>
		<dc:creator>Poli</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Kill]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[Runtime]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.polibou.com/?p=183</guid>
		<description><![CDATA[Somehow you ended up with a query that is taking too long to execute and you need to kill it. First, I&#8217;d advise against using this in an UPDATE or INSERT command as I don&#8217;t know what will happen. Most likely it&#8217;ll will just roll back the DB. For a complex SELECT that just got [...]]]></description>
			<content:encoded><![CDATA[<p>Somehow you ended up with a query that is taking too long to execute and you need to kill it.  First, I&#8217;d advise against using this in an UPDATE or INSERT command as I don&#8217;t know what will happen.  Most likely it&#8217;ll will just roll back the DB.   For a complex SELECT that just got out of hand, this should be safe.</p>
<ol>
<li>Log into MySQL from your Linux console.</li>
<li>Show your running queries and find the ID with a long run time.  I prefer to check this first in mytop to get a real time view and to see the actual query.</li>
<li>Identify the transaction ID.</li>
<li>Kill it.</li>
<li>Exit and you&#8217;re done.</li>
</ol>
<p> <strong> </strong></p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[root@server /]# mysql -u root -p<br />
Enter password: &quot;your password&quot;<br />
<br />
mysql&gt; <br />
mysql&gt; &nbsp;show processlist;<br />
+---------+---------+-------------------+-----------+---------+------+-------+------------------+<br />
| Id &nbsp; &nbsp; &nbsp;| User &nbsp; &nbsp;| Host &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| db &nbsp; &nbsp; &nbsp; &nbsp;| Command | Time | State | Info &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />
+---------+---------+-------------------+-----------+---------+------+-------+------------------+<br />
| 7614534 | root &nbsp; &nbsp;| localhost &nbsp; &nbsp; &nbsp; &nbsp; | NULL &nbsp; &nbsp; &nbsp;| Query &nbsp; | &nbsp; &nbsp;0 | NULL &nbsp;| SHOW Processlist |<br />
| 7614557 | root &nbsp; &nbsp;| 10.10.0.111:53626 | myDB &nbsp; &nbsp; &nbsp;| Query &nbsp; | &nbsp;9999| &nbsp; &nbsp; &nbsp; | NULL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />
| 7614641 | root &nbsp; &nbsp;| 10.10.0.111:53721 | myDB &nbsp; &nbsp; &nbsp;| Sleep &nbsp; | &nbsp; &nbsp;5 | &nbsp; &nbsp; &nbsp; | NULL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />
+---------+---------+-------------------+-----------+---------+------+-------+------------------+<br />
3 rows in set (0.02 sec)<br />
<br />
mysql&gt; kill 7614557;<br />
Query OK, 0 rows affected (0.00 sec)<br />
<br />
mysql&gt; exit<br />
Bye<br />
[root@server /]#</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.polibou.com/2009/06/01/kill-a-running-mysql-query/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

