469,950 Members | 1,902 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

Privileges

I would like to ask , if I can restrict a user from a single table.
I want him to be able to create,alter,delete all the tables but one, which
I want him not to delete it, not to update it not to create it.Just to use
it.

Can I do it?

As long as I have read there is only the way to give credentials for all
the objects of the database.
Aug 30 '06 #1
2 2077
D. Mexis wrote:
I would like to ask , if I can restrict a user from a single table.
I want him to be able to create,alter,delete all the tables but one, which
I want him not to delete it, not to update it not to create it.Just to use
it.

Can I do it?

As long as I have read there is only the way to give credentials for all
the objects of the database.


revoke all privileges on db.tablename from user [,user2,...];
grant select on db.tablename to user[,user2,...];

user = 'username'@'localhost'

Now he will only be able to "read" this table.

--
Michael Austin.
Sep 1 '06 #2
Thank you!

Sep 1 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Marc | last post: by
4 posts views Thread by Amardeep Verma | last post: by
2 posts views Thread by Denis Martineau | last post: by
reply views Thread by Charles Cantrell | last post: by
reply views Thread by Marc | last post: by
8 posts views Thread by binary-nomad | last post: by
2 posts views Thread by virgilio | last post: by
4 posts views Thread by Feldman Alex | last post: by
5 posts views Thread by Rahul B | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.