Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which privilege is required to truncate data in phpmyadmin?

I want my php file user to be able to truncate. In phpmyadmin there is an option to set privalage to DROP, but I can't see one for TRUNCATE. Any ideas?

like image 986
David19801 Avatar asked Dec 02 '22 03:12

David19801


2 Answers

It requires the DROP privilege as of MySQL 5.1.16. (Before 5.1.16, it requires the DELETE privilege).

like image 194
vmg Avatar answered Dec 09 '22 10:12

vmg


truncate It requires the DROP privilege as of MySQL 5.1.16. (Before 5.1.16, it requires the DELETE privilege).

http://dev.mysql.com/doc/refman/5.1/en/truncate-table.html

like image 22
Haim Evgi Avatar answered Dec 09 '22 12:12

Haim Evgi