Details
-
Bug
-
Status: Done
-
Medium
-
Resolution: Fixed
-
None
-
None
-
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.