> --
> You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
> To post to this group, send email to percona-d...@googlegroups.com.
> To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.
>
--
Chief Performance Architect at Percona <http://www.percona.com/>
+1 (888) 401-3401 x507
Calendar: <https://tungle.me/percona_baron>
Percona Live MySQL Conference & Expo <http://www.percona.com/live>
Thanks for the additional information. I'll try to see if I can reproduce this. Which version of pt-index-usage are you using?
Baron
> --
> You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
> To post to this group, send email to percona-d...@googlegroups.com.
> To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.
>
- Baron
I can't reproduce this problem. You might need to look at using PTDEBUG=1 and capture the output to a file, then inspect it to see what is happening.
Baron
> --
> You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
> To post to this group, send email to percona-d...@googlegroups.com.
> To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.
>
- Baron
--
I'm pretty sure you've found a bug. Can you do the following and see what happens?
1. Use your short sample file that you showed before.
2. Run the following command.
PTDEBUG=1 ./pt-index-usage --
host=myMysqlHost --port=3306 --user=user --password=password --
database jfcroteau_bss_ftk_main --create-save-results-database --empty-
save-results-tables --save-results-database
h=myMsqlHost,P=3306,u=user,p=password,D=percona > out.txt 2>&1
Examine the out.txt file and see if you can figure out what it's doing wrong.
- Baron
Yes, you can send me the files privately. MySQL prints a "use"
statement every time the current database changes. We mimic this in
pt-query-digest. Unfortunately there is no way to do "use NULL" when a
statement doesn't have a default database.