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

pt-mysql-summary has broken Security section in versions bigger then 5.6

    Details

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

      Description

      This was checked with PT 3.0.7

      Looks like this:

      # Security ###################################################
                          Users |
                  Old Passwords | 0
      

      Users is always empty if version is 5.7 or 8.0.
      Query being used to retrieve this is:

        928 collect_mysql_users () {
        929    $CMD_MYSQL $EXT_ARGV -ss -e 'SELECT COUNT(*), SUM(user=""), SUM(password=""), SUM(password NOT LIKE "*%") FROM mysql.user' 2>/dev/null
        930 }
      

      But password column was removed from mysql.user table in version 5.7.6 and replaced with authentication_string:

      Incompatible change: The Password column of the mysql.user table was removed in MySQL 5.7.6. All credentials are stored in the authentication_string column, including those formerly stored in the Password column. If performing an in-place upgrade to MySQL 5.7.6 or later, run mysql_upgrade as directed by the in-place upgrade procedure to migrate the Password column contents to the authentication_string column.
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                carlos.salguero Carlos Salguero
                Reporter:
                tomislav.plavcic@percona.com Tomislav Plavcic
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h