Link to home
Start Free TrialLog in
Avatar of Geoff Millikan
Geoff MillikanFlag for United States of America

asked on

MySQL > ERROR 1144 > Illegal GRANT/REVOKE command

What is it about the below query that's illegal??

http://dev.mysql.com/doc/refman/5.1/en/privileges-provided.html

GRANT SELECT, INSERT, UPDATE, DELETE, LOCK TABLES ON interchange.sharkey TO clearing_job@localhost;

ERROR 1144 (42000): Illegal GRANT/REVOKE command; please consult the manual to see which privileges can be used

Open in new window


Thanks,

http://www.t1shopper.com/
Avatar of Usama Foad
Usama Foad
Flag of Egypt image

I think the problem here is in "LOCK TABLES" it is a globle or database levele privilege, you can't grant it ON spcific table. You must do it  a globle or in database level but not for table

GRANT SELECT, INSERT, UPDATE, DELETE ON interchange.sharkey TO clearing_job@localhost;

GRANT LOCK TABLES ON interchange TO clearing_job@localhost;

Open in new window

Avatar of Geoff Millikan

ASKER

I agree it would seem that way however the manual at the link below says that the context for "LOCK TABLES" is "tables."

http://dev.mysql.com/doc/refman/5.1/en/privileges-provided.html

So are you saying the manual is wrong? (Or maybe I'm reading it wrong?)
ASKER CERTIFIED SOLUTION
Avatar of Usama Foad
Usama Foad
Flag of Egypt image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial