Take the 2-minute tour ×
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. It's 100% free, no registration required.

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
add comment

2 Answers

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

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

Max.

share|improve this answer
add comment

Slow log file logs all slow running queries from all users, it's not user specific but you can write your own script by using regex to extract queries only executed by a particular user or ignore queries by users.

You can use MONyog-MySQL monitor which has filter option to ignore queries by user or host.

share|improve this answer
    
Do i see wrong or this Software do not have a Linux version? O_o –  BASILIO Jun 17 '13 at 15:46
    
It has Linux version also webyog.com/product/downloads –  Peter Venderberghe Jun 18 '13 at 4:29
add comment

Your Answer

 
discard

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.