SHOW FULL COLUMNS displays incorrect privileges for table

Bug #809635 reported by Valentine Gostev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.1
Won't Fix
Low
Unassigned
5.5
Triaged
Low
Unassigned
5.6
Invalid
Low
Unassigned
5.7
Invalid
Low
Unassigned

Bug Description

Changed in percona-server:
status: New → Confirmed
importance: Undecided → Low
tags: added: i17123
Stewart Smith (stewart)
Changed in percona-server:
status: Confirmed → Triaged
tags: added: upstream
Revision history for this message
Muhammad Irfan (muhammad-irfan) wrote :
Download full text (4.6 KiB)

I couldn't able to repeat same problem with Percona Server 5.6 It work as expected.

mysql [localhost] {root} (test) > CREATE TABLE t1(a SMALLINT);
Query OK, 0 rows affected (0.02 sec)

mysql [localhost] {root} (test) > GRANT ALL PRIVILEGES ON test.* TO 'testuser'@'%' IDENTIFIED BY 'xxxxxx';
Query OK, 0 rows affected (0.05 sec)

mysql [localhost] {root} (test) > SHOW GRANTS FOR 'testuser'@'%';
+---------------------------------------------------------------------------------------------------------+
| Grants for testuser@% |
+---------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'testuser'@'%' IDENTIFIED BY PASSWORD '*39031A408351B3052FDE09CEC4DC1BAFB89D7339' |
| GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'%' |
+---------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)

# ./use -utestuser -p test
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.6.34-79.1 Percona Server (GPL), Release 79.1, Revision 1c589f9

Copyright (c) 2009-2016 Percona LLC and/or its affiliates
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql [localhost] {testuser} (test) > SHOW FULL COLUMNS FROM t1;
+-------+-------------+-----------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+-------+-------------+-----------+------+-----+---------+-------+---------------------------------+---------+
| a | smallint(6) | NULL | YES | | NULL | | select,insert,update,references | |
+-------+-------------+-----------+------+-----+---------+-------+---------------------------------+---------+
1 row in set (0.02 sec)

# ./use -uroot
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.6.34-79.1 Percona Server (GPL), Release 79.1, Revision 1c589f9

Copyright (c) 2009-2016 Percona LLC and/or its affiliates
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql [localhost] {root} ((none)) > GRANT SELECT ON *.* TO 'testuser'@'%' IDENTIFIED BY 'xxxxxx';
Query OK, 0 rows affected (0.00 sec)

mysql [localhost] {root} ((none)) > SHOW GRANTS FOR 'testuser'@'%';
+-------------------------------------------...

Read more...

Revision history for this message
Muhammad Irfan (muhammad-irfan) wrote :

Not valid for 5.7 either.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1879

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.