Emulate A More Granular MySQL Slow Query Log With Maatkit

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,265
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 3, 2009

Use mk-query-digest to get micro-second slow query granularity.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • This video is simply dynamite. I have implemented this over 4 months ago for a client at my employer's web hosting company.

    The method presented in the video was crontab'd every 20 minutes and helped my client find the troublesome queries they had. They have since placed the query output into memcached.

    Anytime a bad query rears its ugly head, the top 20 worst performing queries show up and my client responses to it. GOOD JOB, PERCONA !!!

  • It don't working for me

    I checked on the 3 servers

    perl mk-query-digest --processlist localhost --interval 0.01

    Pipeline process 2 (Processlist) caused an error: Use of uninitialized value in anonymous hash ({}) at mk-query-digest line 2259.

    Pipeline process 2 (Processlist) caused an error: Use of uninitialized value in anonymous hash ({}) at mk-query-digest line 2259.

    # Caught SIGINT.

  • Why not just configure mySQL to dump all the queries strings it receives to a log?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more