<?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: How to track what owns a MySQL connection</title>
	<atom:link href="http://www.xaprb.com/blog/2006/07/23/how-to-track-what-owns-a-mysql-connection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog/2006/07/23/how-to-track-what-owns-a-mysql-connection/</link>
	<description>Stay curious!</description>
	<lastBuildDate>Thu, 09 Feb 2012 09:56:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: faja</title>
		<link>http://www.xaprb.com/blog/2006/07/23/how-to-track-what-owns-a-mysql-connection/#comment-19606</link>
		<dc:creator>faja</dc:creator>
		<pubDate>Fri, 02 Sep 2011 16:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=188#comment-19606</guid>
		<description>Hi there, i know that this articule was written in 2006, but..

mysql&gt; show full processlist;
from &#039;Host&#039; column you can read _host_ and _PORT_

log into that _host_ and:
# netstat -pt state connected &#124;grep _PORT_
and you have program name and pid

greetings</description>
		<content:encoded><![CDATA[<p>Hi there, i know that this articule was written in 2006, but..</p>
<p>mysql&gt; show full processlist;<br />
from &#8216;Host&#8217; column you can read _host_ and _PORT_</p>
<p>log into that _host_ and:<br />
# netstat -pt state connected |grep _PORT_<br />
and you have program name and pid</p>
<p>greetings</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Another Approach</title>
		<link>http://www.xaprb.com/blog/2006/07/23/how-to-track-what-owns-a-mysql-connection/#comment-18589</link>
		<dc:creator>Another Approach</dc:creator>
		<pubDate>Thu, 26 Aug 2010 22:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=188#comment-18589</guid>
		<description>A lot of applications are generally responsible and close the connection properly.  I&#039;m more interested in slow queries that bog down the database across HTTP (Apache).  We also use a common database layer.  An alternate approach is to simply track the HTTP requests that take a long time and, specifically, the one SQL query that hung up the page.  We use PHP, so we can also dump a call stack and put serialize()&#039;d request data into the database.  If the user has already waited more than 5 seconds for a response, what is an extra 20ms?  To do this, modify the database layer to make one extra SQL query to a &quot;long queries&quot; table that contains all the information you think you will need to diagnose issues.</description>
		<content:encoded><![CDATA[<p>A lot of applications are generally responsible and close the connection properly.  I&#8217;m more interested in slow queries that bog down the database across HTTP (Apache).  We also use a common database layer.  An alternate approach is to simply track the HTTP requests that take a long time and, specifically, the one SQL query that hung up the page.  We use PHP, so we can also dump a call stack and put serialize()&#8217;d request data into the database.  If the user has already waited more than 5 seconds for a response, what is an extra 20ms?  To do this, modify the database layer to make one extra SQL query to a &#8220;long queries&#8221; table that contains all the information you think you will need to diagnose issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: binzhang</title>
		<link>http://www.xaprb.com/blog/2006/07/23/how-to-track-what-owns-a-mysql-connection/#comment-15804</link>
		<dc:creator>binzhang</dc:creator>
		<pubDate>Tue, 10 Feb 2009 08:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=188#comment-15804</guid>
		<description>looks like thread id in &quot;prstat -L -p $mysqld_pid &quot; is the  select connection_id()+10.

thread 1-10 are internal thread and not in show processlist.</description>
		<content:encoded><![CDATA[<p>looks like thread id in &#8220;prstat -L -p $mysqld_pid &#8221; is the  select connection_id()+10.</p>
<p>thread 1-10 are internal thread and not in show processlist.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: innotop 1.5.0 released at Xaprb</title>
		<link>http://www.xaprb.com/blog/2006/07/23/how-to-track-what-owns-a-mysql-connection/#comment-13388</link>
		<dc:creator>innotop 1.5.0 released at Xaprb</dc:creator>
		<pubDate>Mon, 10 Sep 2007 21:59:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=188#comment-13388</guid>
		<description>[...] and InnoDB Transaction List modes. These show the originating program and PID for connections by querying tables in which this data is stored. The plugin adds the columns and expressions for them, and then adds the data in by using [...]</description>
		<content:encoded><![CDATA[<p>[...] and InnoDB Transaction List modes. These show the originating program and PID for connections by querying tables in which this data is stored. The plugin adds the columns and expressions for them, and then adds the data in by using [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitriy</title>
		<link>http://www.xaprb.com/blog/2006/07/23/how-to-track-what-owns-a-mysql-connection/#comment-11568</link>
		<dc:creator>Dmitriy</dc:creator>
		<pubDate>Wed, 13 Jun 2007 23:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=188#comment-11568</guid>
		<description>SoftTree Technologies now provides full MySQL auditing including both network based and local access as part of the DB Audit solution. The solution comes with graphical tools for setting up the auditing and for monitoring and reporting on database access and user activities within MySQL databases; and also includes a back-end API that allows hooking the auditing into third-party applications. 

For details, see http://www.softtreetech.com/idbaudit.htm


For more details contact SoftTree Technologies</description>
		<content:encoded><![CDATA[<p>SoftTree Technologies now provides full MySQL auditing including both network based and local access as part of the DB Audit solution. The solution comes with graphical tools for setting up the auditing and for monitoring and reporting on database access and user activities within MySQL databases; and also includes a back-end API that allows hooking the auditing into third-party applications. </p>
<p>For details, see <a href="http://www.softtreetech.com/idbaudit.htm" rel="nofollow">http://www.softtreetech.com/idbaudit.htm</a></p>
<p>For more details contact SoftTree Technologies</p>
]]></content:encoded>
	</item>
</channel>
</rss>

