Comments on: MySQL Query Profiler http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/ Stay curious! Fri, 10 May 2013 18:25:19 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: Xaprb http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/#comment-17843 Xaprb Fri, 19 Feb 2010 02:41:21 +0000 http://www.xaprb.com/blog/?p=249#comment-17843 Updated to point to maatkit.org.

]]>
By: Marian http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/#comment-17835 Marian Wed, 17 Feb 2010 15:16:11 +0000 http://www.xaprb.com/blog/?p=249#comment-17835 The “Download MySQL Query Profiler” link is broken!

]]>
By: Xaprb http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/#comment-2798 Xaprb Tue, 12 Dec 2006 14:13:30 +0000 http://www.xaprb.com/blog/?p=249#comment-2798 I think you should be seeing

connect('database=[DATABASE];host=localhost;port=3306','[USER]',...)

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.

]]>
By: Erick http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/#comment-2783 Erick Tue, 12 Dec 2006 00:18:23 +0000 http://www.xaprb.com/blog/?p=249#comment-2783 Thanks. Downloaded that tool and installed it. Now it won’t recognize my password. Here’s what I am trying at the command prompt:

mysql-query-profiler --user [USER] -d [DATABASE] --pass [CORRECTPASS] --verbosity 3 queries.sql

But this is what I keep seeing:

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

Is there any special way I need to give this tool the password? I am specifying it with “–pass” as the perldoc suggests?

Thanks.

]]>
By: camka http://www.xaprb.com/blog/2006/10/18/mysql-query-profiler/#comment-2275 camka Tue, 24 Oct 2006 11:15:20 +0000 http://www.xaprb.com/blog/?p=249#comment-2275 Another useful tool to be mentioned is MyProfi 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.

Output Sample:

100 select id, name from user where email={}
94  select password from user where name={}
11  update user set name={}, password={} where id={}
]]>