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

Drop privilege to tables only, Not to database

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      As a db admin, I would like to control the 'drop table' vs 'drop database' privileges separately.
      I would like to make sure that a user can drop the tables/views but not the databases.
      In a scenario where the privileges are granted right after a database is created and the tables are not known yet, the user can't be blocked from dropping a database.

      GRANT DROP ON somedb.* TO 'jeffrey'@'localhost';
      simply grants all drop commands including 'drop database'. I would like to have a version of this command which would allow to manage 'drop database'/'drop table' privileges separately.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mcelep Murat Celep
            Votes:
            2 Vote for this issue
            Watchers:
            5 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.