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

Invalid role error message is not descriptive if you were trying to add grants

    XMLWordPrintable

Details

    Description

      Hi,

      When trying to add grants (GRANT SUPER ON *.*) but forgetting the *.* I get an error about invalid roles:

      MariaDB [mysql]> grant super to 'user'@'host';
      ERROR 1959 (OP000): Invalid role specification `super`.
      

      This is not very descriptive. In my opinion, this would be better:

      ERROR 1959 (OP000): Invalid role specification `super`. Perhaps you meant to grant a permission ON database.table or *.*?
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            michaeldg Michaël de groot
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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