I'm running MySQL 5.1.73-0ubuntu0.10.04.1-log and I'm trying to make it so a user can LOCK TABLES. I GRANTed LOCK TABLEs with the following:
GRANT SELECT, LOCK TABLES ON *.* TO 'dbuser';
That responds with Query OK, 0 rows affected (0.00 sec)
.
After that, when I login as dbuser
, and try to do LOCK TABLES table_name WRITE;
I get the following error:
ERROR 1044 (42000): Access denied for user 'dbuser'@'localhost' to database 'dbname'
I do SHOW GRANTS
as dbuser and do not see any GRANT for LOCK TABLES.
Any ideas?