<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: MySQL Query Profiler</title>
	<link>http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/</link>
	<description>Stay curious!</description>
	<pubDate>Thu, 28 Aug 2008 23:29:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/#comment-2798</link>
		<author>Xaprb</author>
		<pubDate>Tue, 12 Dec 2006 14:13:30 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/#comment-2798</guid>
		<description>&lt;p&gt;I think you should be seeing&lt;/p&gt;

&lt;p&gt;&lt;code&gt;connect('database=[DATABASE];host=localhost;port=3306','[USER]',...)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Instead of [DATABASE].  If that's not the trouble, then I'm suspicious of problems with old-style passwords in your MySQL account.  Sometimes certain software can connect to an account with an old-style password and other software can't.  There is a section in the MySQL Manual on that.  Even though you'd think the error would be something like "Client does not support authentication protocol requested," I have seen cases where Perl programs fail with what looks like a wrong-password error instead.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I think you should be seeing</p>
<p><code>connect('database=[DATABASE];host=localhost;port=3306','[USER]',...)</code></p>
<p>Instead of [DATABASE].  If that&#8217;s not the trouble, then I&#8217;m suspicious of problems with old-style passwords in your MySQL account.  Sometimes certain software can connect to an account with an old-style password and other software can&#8217;t.  There is a section in the MySQL Manual on that.  Even though you&#8217;d think the error would be something like &#8220;Client does not support authentication protocol requested,&#8221; I have seen cases where Perl programs fail with what looks like a wrong-password error instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erick</title>
		<link>http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/#comment-2783</link>
		<author>Erick</author>
		<pubDate>Tue, 12 Dec 2006 00:18:23 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/#comment-2783</guid>
		<description>&lt;p&gt;Thanks. Downloaded that tool and installed it. Now it won't recognize my password.  Here's what I am trying at the command prompt:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;mysql-query-profiler --user [USER] -d [DATABASE] --pass [CORRECTPASS] --verbosity 3 queries.sql&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;But this is what I keep seeing:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;DBI connect('database=[DATABASE];host=localhost;port=3306','[DATABASE]',...) failed: Access denied for user '[USER]'@'localhost' (using password: YES) at /usr/bin/mysql-query-profiler line 168&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Is there any special way I need to give this tool the password? I am specifying it with "--pass" as the perldoc suggests?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Thanks. Downloaded that tool and installed it. Now it won&#8217;t recognize my password.  Here&#8217;s what I am trying at the command prompt:</p>
<p><code>mysql-query-profiler --user [USER] -d [DATABASE] --pass [CORRECTPASS] --verbosity 3 queries.sql</code></p>
<p>But this is what I keep seeing:</p>
<p><code>DBI connect('database=[DATABASE];host=localhost;port=3306','[DATABASE]',...) failed: Access denied for user '[USER]'@'localhost' (using password: YES) at /usr/bin/mysql-query-profiler line 168</code></p>
<p>Is there any special way I need to give this tool the password? I am specifying it with &#8220;&#8211;pass&#8221; as the perldoc suggests?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: camka</title>
		<link>http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/#comment-2275</link>
		<author>camka</author>
		<pubDate>Tue, 24 Oct 2006 11:15:20 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/#comment-2275</guid>
		<description>&lt;p&gt;Another useful tool to be mentioned is &lt;a href="http://sourceforge.net/projects/myprofi" title="MyProfi"&gt;MyProfi&lt;/a&gt; that takes mysql query log and outputs the most frequently executed queries removing variable data from them, so one may easily analyze the most popular queries and start optimizing them.&lt;/p&gt;

&lt;p&gt;Output Sample:&lt;/p&gt;

&lt;pre&gt;100 select id, name from user where email={}
94  select password from user where name={}
11  update user set name={}, password={} where id={}&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Another useful tool to be mentioned is <a href="http://sourceforge.net/projects/myprofi" title="MyProfi">MyProfi</a> that takes mysql query log and outputs the most frequently executed queries removing variable data from them, so one may easily analyze the most popular queries and start optimizing them.</p>
<p>Output Sample:</p>
<pre>100 select id, name from user where email={}
94  select password from user where name={}
11  update user set name={}, password={} where id={}</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
