Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-14708

SHOW EVENTS in performance_schema gives Access Denied

Details

    Description

      Description:
      Executing SHOW EVENTS on performance_schema returns an Access denied error, even if the user is root.
      Perhaps the command should return an empty result set instead.

      How to repeat:

      MariaDB [(none)]> use performance_schema;
      Reading table information for completion of table and column names
      You can turn off this feature to get a quicker startup with -A
       
      Database changed
      MariaDB [performance_schema]> show grants;
      +----------------------------------------------------------------------------------------------------------------------------------------+
      | Grants for root@localhost                                                                                                              |
      +----------------------------------------------------------------------------------------------------------------------------------------+
      | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*****************************************' WITH GRANT OPTION |
      | GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION                                                                           |
      +----------------------------------------------------------------------------------------------------------------------------------------+
      2 rows in set (0.00 sec)
       
      MariaDB [performance_schema]> show events;
      ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'performance_schema'
      

      Attachments

        Activity

          kallehk Karl HÃ¥kansson created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          Description Description:
          Executing SHOW EVENTS on performance_schema returns an Access denied error, even if the user is root.
          Perhaps the command should return an empty result set instead.

          How to repeat:
          MariaDB [(none)]> use performance_schema;
          Reading table information for completion of table and column names
          You can turn off this feature to get a quicker startup with -A

          Database changed
          MariaDB [performance_schema]> show grants;
          +----------------------------------------------------------------------------------------------------------------------------------------+
          | Grants for root@localhost |
          +----------------------------------------------------------------------------------------------------------------------------------------+
          | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*****************************************' WITH GRANT OPTION |
          | GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION |
          +----------------------------------------------------------------------------------------------------------------------------------------+
          2 rows in set (0.00 sec)

          MariaDB [performance_schema]> show events;
          ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'performance_schema'
          Description:
          Executing SHOW EVENTS on performance_schema returns an Access denied error, even if the user is root.
          Perhaps the command should return an empty result set instead.

          How to repeat:
          {code:sql}
          MariaDB [(none)]> use performance_schema;
          Reading table information for completion of table and column names
          You can turn off this feature to get a quicker startup with -A

          Database changed
          MariaDB [performance_schema]> show grants;
          +----------------------------------------------------------------------------------------------------------------------------------------+
          | Grants for root@localhost |
          +----------------------------------------------------------------------------------------------------------------------------------------+
          | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*****************************************' WITH GRANT OPTION |
          | GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION |
          +----------------------------------------------------------------------------------------------------------------------------------------+
          2 rows in set (0.00 sec)

          MariaDB [performance_schema]> show events;
          ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'performance_schema'
          {code}
          elenst Elena Stepanova made changes -
          Component/s Authentication and Privilege System [ 13101 ]
          Fix Version/s 10.2 [ 14601 ]
          Affects Version/s 5.5 [ 15800 ]
          Affects Version/s 10.0 [ 16000 ]
          Affects Version/s 10.1 [ 16100 ]
          Affects Version/s 10.2 [ 14601 ]
          Assignee Sergei Golubchik [ serg ]
          Labels upstream-fixed
          elenst Elena Stepanova made changes -
          elenst Elena Stepanova made changes -
          Status Open [ 1 ] Confirmed [ 10101 ]
          serg Sergei Golubchik made changes -
          Fix Version/s N/A [ 14700 ]
          Fix Version/s 10.2 [ 14601 ]
          Resolution Fixed [ 1 ]
          Status Confirmed [ 10101 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Stalled [ 10000 ]
          serg Sergei Golubchik made changes -
          Status Stalled [ 10000 ] In Progress [ 3 ]
          serg Sergei Golubchik made changes -
          Resolution Not a Bug [ 6 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 84508 ] MariaDB v4 [ 153397 ]

          People

            serg Sergei Golubchik
            kallehk Karl HÃ¥kansson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.