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

ER_TABLEACCESS_DENIED_ERROR is missing information about DB

    XMLWordPrintable

Details

    Description

      connect  con1,localhost,foo,,db1;
      show grants;
      Grants for foo@localhost
      GRANT USAGE ON *.* TO `foo`@`localhost`
      GRANT CREATE ON `db1`.* TO `foo`@`localhost`
      GRANT CREATE ON `db2`.* TO `foo`@`localhost`
      create table t(t int);
      show columns in t;
      ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't'
      

      • Database should be shown too:

        ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 'db1.t'
        

      Attachments

        Issue Links

          Activity

            People

              anel Anel Husakovic
              anel Anel Husakovic
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1d
                  1d

                  Git Integration

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