incorrect (garbled) output from pt-show-grants

Bug #983282 reported by Jim Lyons
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Invalid
Undecided
Unassigned

Bug Description

[In:Percona Toolkit Documentation]
The resuls from the pt-show-grants command are garbled for user grants select on a column in a table. For example, when running the mysql command line program I issued the command "show grants for WTN_Lookup" and got back:

+-----------------------------------------------------------------------------------------------------------+
| Grants for WTN_Lookup@% |
+-----------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'WTN_Lookup'@'%' IDENTIFIED BY PASSWORD '*8BC8517760BD51CD007C0144CAE4BBF3BF45EB9F' |
| GRANT SELECT, SELECT (WTN, AccountNum) ON `custcare`.`ACCOUNT` TO 'WTN_Lookup'@'%' |
+-----------------------------------------------------------------------------------------------------------+

When I issue, from the Linux command line, the pt-show-grants command, here are the results:

pt-show-grants | grep WTN_Lookup
-- Grants for 'WTN_Lookup'@'%'
GRANT USAGE ON *.* TO 'WTN_Lookup'@'%' IDENTIFIED BY PASSWORD '*8BC8517760BD51CD007C0144CAE4BBF3BF45EB9F';
GRANT AccountNum), SELECT, SELECT (WTN ON `custcare`.`ACCOUNT` TO 'WTN_Lookup'@'%';

The results are identical when running mk-show-grants.

MySQL version: Server version: 5.0.56sp1-enterprise-gpl-log MySQL Enterprise Server (GPL)
Percona toolkit version: 2.0.3

Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

I believe this is a duplicate of bug 866075. Can you confirm?

Revision history for this message
Jim Lyons (jlyons4435) wrote : Re: [Bug 983282] Re: incorrect (garbled) output from pt-show-grants

Yes - they look the same. thanks

On Tue, Apr 17, 2012 at 10:24 AM, Baron Schwartz <email address hidden> wrote:

> I believe this is a duplicate of bug 866075. Can you confirm?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/983282
>
> Title:
> incorrect (garbled) output from pt-show-grants
>
> Status in Percona Toolkit:
> New
>
> Bug description:
> [In:Percona Toolkit Documentation]
> The resuls from the pt-show-grants command are garbled for user grants
> select on a column in a table. For example, when running the mysql command
> line program I issued the command "show grants for WTN_Lookup" and got
> back:
>
>
> +-----------------------------------------------------------------------------------------------------------+
> | Grants for WTN_Lookup@%
> |
>
> +-----------------------------------------------------------------------------------------------------------+
> | GRANT USAGE ON *.* TO 'WTN_Lookup'@'%' IDENTIFIED BY PASSWORD
> '*8BC8517760BD51CD007C0144CAE4BBF3BF45EB9F' |
> | GRANT SELECT, SELECT (WTN, AccountNum) ON `custcare`.`ACCOUNT` TO
> 'WTN_Lookup'@'%' |
>
> +-----------------------------------------------------------------------------------------------------------+
>
> When I issue, from the Linux command line, the pt-show-grants command,
> here are the results:
>
> pt-show-grants | grep WTN_Lookup
> -- Grants for 'WTN_Lookup'@'%'
> GRANT USAGE ON *.* TO 'WTN_Lookup'@'%' IDENTIFIED BY PASSWORD
> '*8BC8517760BD51CD007C0144CAE4BBF3BF45EB9F';
> GRANT AccountNum), SELECT, SELECT (WTN ON `custcare`.`ACCOUNT` TO
> 'WTN_Lookup'@'%';
>
>
> The results are identical when running mk-show-grants.
>
> MySQL version: Server version: 5.0.56sp1-enterprise-gpl-log MySQL
> Enterprise Server (GPL)
> Percona toolkit version: 2.0.3
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/percona-toolkit/+bug/983282/+subscriptions
>

--
Jim Lyons
Database administrator / Programmer

Changed in percona-toolkit:
status: New → Invalid
tags: added: pt-show-grants wrong-output
removed: doc
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.