pt-show-grants --separate dumps UPDATE grants incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
New
|
Undecided
|
Daniel Nichter |
Bug Description
If the mysql user has a grant to UPDATE specific columns, pt-show-grants (with the --separate option) dumps them incorrectly.
This is with percona-toolkit v2.0.3 and MySQL server v5.0.77 (the mysql-server-
CREATE DATABASE `test`;
USE `test`;
CREATE TABLE `percona` (
`id` int unsigned NOT NULL auto_increment,
`col1` varchar(10) NOT NULL default '',
`col2` varchar(10) NOT NULL default '',
`col3` varchar(10) NOT NULL default '',
PRIMARY KEY (`id`)
);
GRANT USAGE ON *.* TO 'percona'
SET PASSWORD FOR 'percona'
GRANT SELECT, UPDATE (col1, col2) ON `test`.`percona` TO 'percona'
(excerpted) output of "pt-show-grants --separate":
-- Grants dumped by pt-show-grants
-- Dumped from server Localhost via UNIX socket, MySQL 5.0.77-log at 2012-02-14 13:18:16
-- Grants for 'percona'
GRANT USAGE ON *.* TO 'percona'
GRANT SELECT ON `test`.`percona` TO 'percona'
GRANT UPDATE (col2 ON `test`.`percona` TO 'percona'
GRANT col1) ON `test`.`percona` TO 'percona'
tags: | added: pt-show-grants wrong-output |
Changed in percona-toolkit: | |
assignee: | nobody → Daniel Nichter (daniel-nichter) |
Is this a duplicate of https:/ /bugs.launchpad .net/percona- toolkit/ +bug/866075 ?