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?

  • What version of MySQL are you running ??? Commented Jul 17, 2013 at 14:42

1 Answer 1


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

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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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