mysql - Hide database from user while allowing user to query it -
i hoping me mysql / phpmyadmin problem. (i don't know if possible...)
here problem: have 2 databases: db1 , db2 have user db1user. user has full access db1 , has select access specific tables in db2. hoping there way hide db2 user. i.e. when user types in 'show databases;', user see db1. however, when user types in 'select * db2.table1;', should see results of query.
is possible? doable?
thanks help!
these 2 queries restrict user single database, user can see, update, , delete tables single database:
replace user mysql username
replace userdatabase single mysql database wish user have access to.
revoke privileges,grant option user; grant on userdatabase.* 'user';
Comments
Post a Comment