简体   繁体   中英

Create user with Drop privilege for just tables Not DB

Can someone help me with privileges here. I need to create a user that can DROP tables within databases but cannot DROP the databases? MySQL DB version:5.0.95

If he can drop tables, he can simply enter the query DROP TABLE *; effectively dropping the contents of the database. There is no plus to allowing a user to drop only tables, and thus I don't think there is a way to do so.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM