HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlMinor

Drop privilege to tables only, Not to database

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
tablesprivilegedatabasedropnotonly

Problem

I created a user with drop privilege to a database.

How can I create a user who has the privilege to drop tables of a specified database, but not database.

Solution

Do GRANT DROP ON TABLE thedatabase.* TO user1.
The MySQL Reference Manual is a great place to look for this kinds of things.

Context

StackExchange Database Administrators Q#48510, answer score: 8

Revisions (0)

No revisions yet.