Percona tool script, pt-query-digest, looks like its will be very useful to analyse a MySQL slow query log. Does someone know how I can get the script to only look at queries relating to a specific database?
Thanks
Percona tool script, pt-query-digest, looks like its will be very useful to analyse a MySQL slow query log. Does someone know how I can get the script to only look at queries relating to a specific database?
Thanks
Hi,
You can use the filters for that. For example, you can add the following filter if you want to check only the events in “mydb”
–filter ‘($event->{db} || “”) =~ m/mydb/’
More information: http://www.percona.com/doc/percona-toolkit/2.1/pt-query-dige st.html#cmdoption-pt-query-digest–filter
Martin Arrieta
@martinarrietac
Thanks!
Unanswered | Unsolved | Solved
MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright © 2006 - 2024 Percona LLC. All rights reserved.