pt-show-grants fails against MySQL-5.7.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Fix Released
|
High
|
Frank Cizmich |
Bug Description
MySQL 5.7.6 changes the MySQL grant tables and as such this breaks pt-show-grants.
The Password column has gone and is replaced by a new column called authentication_
[myuser@myserver ~]$ pt-show-grants | grep root.@.localhost
-- Grants for 'root'@'localhost'
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION;
[myuser@myserver ~]$ rpm -q percona-toolkit
percona-
[myuser@myserver ~]$
This is because now the output of SHOW GRANTS FOR 'root'@'localhost shows only:
root@myserver [(none)]> show grants for 'root'@'localhost';
+------
| Grants for root@localhost |
+------
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION |
| GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION |
+------
2 rows in set (0.00 sec)
So no password is shown. I'm not 100% sure if that's a bug or not (and may report it to Oracle).
You can see the password info if needed this way:
root@myserver [mysql]> select User,Host,
+------
| User | Host | authentication_
+------
| root | localhost | *B9xxxxxxxxxxxx
+------
1 row in set (0.00 sec)
So some sort of patch would be good to make pt-show-grants continue to show the information while people are testing 5.7.
root@myserver [mysql]> select @@version;
+------
| @@version |
+------
| 5.7.6-log |
+------
1 row in set (0.00 sec)
tags: | added: 5.7 pt-show-grants |
Changed in percona-toolkit: | |
status: | In Progress → Fix Committed |
Changed in percona-toolkit: | |
status: | Fix Committed → Fix Released |
For reference see: http:// bugs.mysql. com/bug. php?id= 76465