dbTalk Databases Forums  

Grant lock tables on single table gives ERROR 1144

mailing.database.mysql mailing.database.mysql


Discuss Grant lock tables on single table gives ERROR 1144 in the mailing.database.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Serman D.
 
Posts: n/a

Default Grant lock tables on single table gives ERROR 1144 - 04-26-2007 , 05:51 AM






Hi,

Tested on MySQL 4.1.20 and 5.0.33 with similar results. I don't
understand why I cannot grant LOCK TABLES on a single table, while
granting LOCK TABLES on all tables work fine.

mysql> SELECT VERSION()\G
*************************** 1. row ***************************
VERSION(): 4.1.20
1 row in set (0.00 sec)

mysql> SELECT CURRENT_USER()\G
*************************** 1. row ***************************
CURRENT_USER(): root@localhost
1 row in set (0.02 sec)

mysql> CREATE DATABASE grant_test;
Query OK, 1 row affected (0.04 sec)

mysql> USE grant_test;
Database changed
mysql> CREATE TABLE t (i INTEGER PRIMARY KEY NOT NULL);
Query OK, 0 rows affected (0.02 sec)

mysql> GRANT SELECT ON grant_test.t TO grant_test_user IDENTIFIED BY
'foobar';
Query OK, 0 rows affected (0.12 sec)

mysql> GRANT LOCK TABLES ON grant_test.t TO grant_test_user IDENTIFIED
BY 'foobar';
ERROR 1144 (42000): Illegal GRANT/REVOKE command; please consult the
manual to see which privileges can be used
mysql> GRANT LOCK TABLES ON grant_test.* TO grant_test_user IDENTIFIED
BY 'foobar';
Query OK, 0 rows affected (0.03 sec)

--
Serman D.


Reply With Quote
  #2  
Old   
Gordon Burditt
 
Posts: n/a

Default Re: Grant lock tables on single table gives ERROR 1144 - 04-26-2007 , 11:22 PM






Quote:
Tested on MySQL 4.1.20 and 5.0.33 with similar results. I don't
understand why I cannot grant LOCK TABLES on a single table, while
granting LOCK TABLES on all tables work fine.
Privileges exist at one or more of 4 levels: global, database,
table, and column. LOCK TABLES exists only at the global and database
levels.




Reply With Quote
  #3  
Old   
Serman D.
 
Posts: n/a

Default Re: Grant lock tables on single table gives ERROR 1144 - 04-27-2007 , 01:27 AM



On Apr 27, 6:22 am, gordonb.6t... (AT) burditt (DOT) org (Gordon Burditt) wrote:
Quote:
Tested on MySQL 4.1.20 and 5.0.33 with similar results. I don't
understand why I cannot grant LOCK TABLES on a single table, while
granting LOCK TABLES on all tables work fine.

Privileges exist at one or more of 4 levels: global, database,
table, and column. LOCK TABLES exists only at the global and database
levels.
Gordon, Thanks for the clarification.

--
Serman D.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.