If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > grant on db.* except 2 tables ???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-13-04, 06:19
behd behd is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
Question grant on db.* except 2 tables ???

Hi there,

Does someone know if there's some trick to grant to a user 'SELECT' privilege
to all tables of a db except 3 ?

My problem is that this database contains lot of tables and I don't want to grant per tables right (NB. this user should be able to use 'SELECT' on new tables that I could create).

So what I am looking to do is smth like that (but EXCEPT doesn't exists):
GRANT SELECT ON db.* EXCEPT db.table103, db.table104, db.table105 TO user@'1.2.3.%' IDENTIFIED BY 'pwd'.

Thanks in advance for any feedback !

PS. mysql -V = 4.0.12
Reply With Quote
  #2 (permalink)  
Old 08-13-04, 11:37
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
My first thought would be to move those two tables into their own database.

-PatP
Reply With Quote
  #3 (permalink)  
Old 08-17-04, 09:06
behd behd is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
thx for your reply Pat but I can't move them in an other db (needed to combine w/ other tables in the db).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On