Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use a slow.log logging on my MySQL server, to catch bottlenecks in my script, but at the same time, i use phpmyadmin on this server. My script and pma has different MySQL user accounts and now, when i analyzing the slow.log file, i see a lot of spam from pma queries, is it possible, to configure the MySQL to logging a slow queries only from specific users?

share|improve this question
What version of MySQL are you running ??? – RolandoMySQLDBA Jul 17 '13 at 14:42

You can try to analyse your slow log with the Percona tool pt-query-digest and use the option :

–filter ‘($event->{user} || “”) =~ m/john/’


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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