What tools exist to profile MySQL, like how MSSQL 2000+ does with the SQL Profiler?

I'd want to trace things like SQL statements executed, execution times, execution plan, etc.

link|improve this question

75% accept rate
feedback

9 Answers

up vote 7 down vote accepted

Look into enabling the Query Log and the Slow Query Log.

link|improve this answer
feedback

if you have query logging turned on on your production/test environment [ which is not necessary the case ] you can use mk-query-digest from maatkit toolkit. it'll help you to determine which queries are most frequent/longest taking etc.

link|improve this answer
feedback

Another commercial option is MySQL Query Analyzer which is part of the MySQL Enterprise Monitor. I've found it to be moderately useful in helping to profile oddball queries to figure out ways to improve their performance.

link|improve this answer
feedback

Here is an good article about the profiler of MySQL. Although take a look at the explain statement.

link|improve this answer
This link no longer works. Thanks Oracle. – Mufasa Nov 18 '11 at 20:47
updated to an alternative – Node Nov 28 '11 at 12:51
feedback

You can also check out MySQLTuner

link|improve this answer
feedback

+1 for Look into enabling the Query Log and the Slow Query Log. I just don't have the reputation to vote that up just yet ;)

link|improve this answer
feedback

I use this little script. It's always been useful to me, although not anything official.

http://genomewiki.ucsc.edu/index.php/Tuning-primer.sh

link|improve this answer
feedback

I've used several scripts and other tools which are all great, but i found Jet Profiler really good at giving real time monitoring and visualization of what's going on and how things are changing. The full version costs money but the restricted free version is also useful and gives you a good feel for what the full one can do.

link|improve this answer
feedback

Try to use Neor Profile. Tool for profiling all Mysql queries from web site or application. To get time, size, query.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.