MySQL Forums
Forum List  »  Newbie

Re: Different Visible Databases for each User
Posted by: Jean Peter Paredes
Date: February 22, 2014 05:55AM

Its me again :3

i tried the commands below after creating a new user. i disabled *Grant* and *Create_User* options for him. the new user is 'shy' and 'localhost' is also his host. my user is 'mad' @localhost. before i created 'shy', there are about 20 different databases in our mysql instance. 'shy's only working with the databaseB database. so then i tried the codes below.

GRANT ALL on databaseB.* to 'shy'@'localhost' identified by 'shyspassword';
FLUSH PRIVILEGES;

i exit my sql yog. came back, log in shy, but he can still see the rest of the 20 databases.

where did i go wrong ?

thanks :)



Edited 1 time(s). Last edit at 02/22/2014 05:56AM by Jean Peter Paredes.

Options: ReplyQuote


Subject
Written By
Posted
Re: Different Visible Databases for each User
February 22, 2014 05:55AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.