Uploaded image for project: 'Percona Toolkit'
  1. Percona Toolkit
  2. PT-667

LP #1402776: Parsing of tcpdump capture from MySQL 5.6 with pt-query-digest adds erroneous \x0mysql_native_password to "use database" statements

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      **Reported in Launchpad by Ovais Tariq last update 26-05-2017 18:41:47

      When parsing a tcpdump file created with MySQL 5.6 with pt-query-digest the "use database" statements are parsed incorrectly.

      The database name is appended with a null character and the string "mysql_native_password".

      The Percona toolkit version used is 2.2.11.

      The tcpdump command line used is the following:
      /usr/sbin/tcpdump -i eth0 -s 65535 -x -n -q -tttt 'port 3306 and tcp[1] & 7 == 2 and tcp[3] & 7 == 2'

      The pt-query-digest command line used is the following:
      /usr/bin/pt-query-digest -type tcpdump /tmp/mysql.tcp.out --output slowlog --no-report --filter '($event>

      {fingerprint} =~ m/^select/i) && ($event->{arg} !~ m/for update/i) && ($event->{fingerprint}

      !~ m/some_table_name_to_ignore/i)' > /tmp/slow.log.out 2> /dev/null

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              lpjirasync lpjirasync (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: