[MDEV-14708] SHOW EVENTS in performance_schema gives Access Denied Created: 2017-12-19 Updated: 2017-12-19 Resolved: 2017-12-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System, Events |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Karl Håkansson | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Environment: |
rhel 7 |
||
| Description |
|
Description: How to repeat:
|
| Comments |
| Comment by Elena Stepanova [ 2017-12-19 ] | ||||
|
Thanks for the report. Reproducible on all of MariaDB 5.5-10.3, MySQL 5.5-5.6. Not reproducible on MySQL 5.7, apparently fixed in scope of https://bugs.mysql.com/bug.php?id=73082. | ||||
| Comment by Sergei Golubchik [ 2017-12-19 ] | ||||
|
This is not a bug. One of the differences between SHOW commands and queries on information_schema tables — SHOW commands check privileges up front and fail with an error, while information_schema tables only omit rows, presenting an empty result set. For example:
One needs to have EVENT privilege to see events. Nobody has this privilege on performance_schema, not even the root user. So SHOW EVENTS rightfully fails there. And informartion_schema.events displays no rows (rightfully, too). |