<?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: MySQL: Script to identify the locks and blocking transactions	</title>
	<atom:link href="https://www.dbrnd.com/2016/02/mysql-script-to-identify-the-locks-and-blocking-transactions/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2016/02/mysql-script-to-identify-the-locks-and-blocking-transactions/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Wed, 20 Nov 2019 21:42:18 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: Doug Mewhort		</title>
		<link>https://www.dbrnd.com/2016/02/mysql-script-to-identify-the-locks-and-blocking-transactions/#comment-7894</link>

		<dc:creator><![CDATA[Doug Mewhort]]></dc:creator>
		<pubDate>Wed, 20 Nov 2019 21:42:18 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1771#comment-7894</guid>

					<description><![CDATA[I think the query should be:
SELECT pl.id,pl.user,pl.state
     ,it.trx_id,it.trx_mysql_thread_id,it.trx_query AS blocked_query
     ,it2.trx_id AS blocking_trx_id,it2.trx_mysql_thread_id AS blocking_thread,it2.trx_query AS blocking_query 
FROM information_schema.processlist AS pl 
INNER JOIN information_schema.innodb_trx AS it ON pl.id = it.trx_mysql_thread_id 
INNER JOIN information_schema.innodb_trx AS it2 ON pl.id = it2.trx_mysql_thread_id 
INNER JOIN information_schema.innodb_lock_waits AS ilw ON it.trx_id=ilw.requesting_trx_id AND it2.trx_id = ilw.blocking_trx_id;]]></description>
			<content:encoded><![CDATA[<p>I think the query should be:<br />
SELECT pl.id,pl.user,pl.state<br />
     ,it.trx_id,it.trx_mysql_thread_id,it.trx_query AS blocked_query<br />
     ,it2.trx_id AS blocking_trx_id,it2.trx_mysql_thread_id AS blocking_thread,it2.trx_query AS blocking_query<br />
FROM information_schema.processlist AS pl<br />
INNER JOIN information_schema.innodb_trx AS it ON pl.id = it.trx_mysql_thread_id<br />
INNER JOIN information_schema.innodb_trx AS it2 ON pl.id = it2.trx_mysql_thread_id<br />
INNER JOIN information_schema.innodb_lock_waits AS ilw ON it.trx_id=ilw.requesting_trx_id AND it2.trx_id = ilw.blocking_trx_id;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anvesh Patel		</title>
		<link>https://www.dbrnd.com/2016/02/mysql-script-to-identify-the-locks-and-blocking-transactions/#comment-5901</link>

		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 10 Oct 2017 20:36:47 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1771#comment-5901</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.dbrnd.com/2016/02/mysql-script-to-identify-the-locks-and-blocking-transactions/#comment-5896&quot;&gt;vayu nandan&lt;/a&gt;.

thanks for update, i will check this.]]></description>
			<content:encoded><![CDATA[<p>thanks for update, i will check this.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: vayu nandan		</title>
		<link>https://www.dbrnd.com/2016/02/mysql-script-to-identify-the-locks-and-blocking-transactions/#comment-5896</link>

		<dc:creator><![CDATA[vayu nandan]]></dc:creator>
		<pubDate>Tue, 10 Oct 2017 11:25:46 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1771#comment-5896</guid>

					<description><![CDATA[YOUR SCRIPT IS WRONG . WE NEED TO USE  information_schema.innodb_trx TABLE TWICE TO JOIN ON ilw.requesting_trx_id AND ilw.blocking_trx_id TO GET BLOCKED AND BLOCKING TRANSACTION DETAILS SEPERATELY]]></description>
			<content:encoded><![CDATA[<p>YOUR SCRIPT IS WRONG . WE NEED TO USE  information_schema.innodb_trx TABLE TWICE TO JOIN ON ilw.requesting_trx_id AND ilw.blocking_trx_id TO GET BLOCKED AND BLOCKING TRANSACTION DETAILS SEPERATELY</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anvesh Patel		</title>
		<link>https://www.dbrnd.com/2016/02/mysql-script-to-identify-the-locks-and-blocking-transactions/#comment-2746</link>

		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 23 Feb 2016 18:45:34 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1771#comment-2746</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.dbrnd.com/2016/02/mysql-script-to-identify-the-locks-and-blocking-transactions/#comment-2727&quot;&gt;vivek&lt;/a&gt;.

If you are talking about Oracle, I need to check. 
For MySQL, you can visit this articles:
http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_max_allowed_packet
http://stackoverflow.com/questions/273437/how-do-you-debug-mysql-stored-procedures]]></description>
			<content:encoded><![CDATA[<p>If you are talking about Oracle, I need to check.<br />
For MySQL, you can visit this articles:<br />
<a href="http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_max_allowed_packet" rel="nofollow ugc">http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_max_allowed_packet</a><br />
<a href="http://stackoverflow.com/questions/273437/how-do-you-debug-mysql-stored-procedures" rel="nofollow ugc">http://stackoverflow.com/questions/273437/how-do-you-debug-mysql-stored-procedures</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: vivek		</title>
		<link>https://www.dbrnd.com/2016/02/mysql-script-to-identify-the-locks-and-blocking-transactions/#comment-2727</link>

		<dc:creator><![CDATA[vivek]]></dc:creator>
		<pubDate>Tue, 23 Feb 2016 03:39:28 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1771#comment-2727</guid>

					<description><![CDATA[Hi , 
Do  know how to use debugger in PL/SQL developer tool and what permission are required ?]]></description>
			<content:encoded><![CDATA[<p>Hi ,<br />
Do  know how to use debugger in PL/SQL developer tool and what permission are required ?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
