Bug #28667 Privilege to allow TRUNCATE and deny DROP ?

Submitted: 25 May 2007 8:35
Reporter: Nicolae Namolovan Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Server: Security: Privileges Severity:S4 (Feature request)
Version:5.1.18 OS:Any
Assigned to: CPU Architecture:Any

[25 May 2007 8:35] Nicolae Namolovan
Description:
"TRUNCATE TABLE requires the DROP privilege as of MySQL 5.1.16. (Before 5.1.16, it requires the DELETE privilege."

Giving DROP privilege is too much, I don't want user to drop the table.
Still I want a fast "delete all rows" function.

How to repeat:
mysql> TRUNCATE ..;
ERROR 1142 (42000): DROP command denied to user '..'@'localhost' for table '..'
[26 May 2007 8:32] Valeriy Kravchuk
Sounds like a feature request.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.