Posted by:
stevenmartin99
(---.b-ras2.blp.dublin.eircom.net)
cos "it doesnt work at all" doesnt say what u did and were it went wrong
stating ur a newbie may help in your first post - that way id know the level of detail to give
the sql code is
GRANT DELETE ON database.tablename TO 'username'@'localhost';
in phpmyadmin u can click "SQL" and just insert this code changing the 3 pieces of info db,table , user
-------------------------------------------------------------------------------------------
to achieve this in phpmyadmins menu...
Click Privledges --edit the user....
go down below the "global privledges" to
"database specific privileges"
change "use text field" to the name of the database
the page will reload
go down below the "database privledges" to
"table specific privileges"
change "use text field" to the name of the table
the page will reload
By deafault the user will get select,insert etc so tick "None" below each of the four white boxes
Then select the "DELETE" option and press go
----------------------------------------------------------------------------------------------
The EMPTY function actually calls TRUNCATE to run but it requires the DROP PRIVELEDGE. - You wont want anyone dropping the entire table. so you will need to use DELETE PRILEDGE
the command to empty the table using DELETE is
press "SQL" and use this code
DELETE FROM database.table
this will empty the table.
NOTE: There is no way of using the "empty" button without giving the DROP Privledge
Steven Martin
stevenmartin99@gmail.comstevenmartin99@hotmail.comPampServer.com - [
pampserver.com]
Edited 1 time(s). Last edit at 06/09/2009 12:11AM by stevenmartin99.