MySql grant user permission -
i want create new user in mysql. not want new user existing databases [i want grant select privilege him], can , new database creates.
firstly, there way grant permission per database owner? if possible, ideal thing looking for. , if not, how restrict particular user accessing [only select privilege] specific database only, allowing him wants remaining ones?
from mysql grant documentation:
create user 'jeffrey'@'localhost' identified 'mypass'; grant select on *.* 'jeffrey'@'localhost'; grant on db1.* 'jeffrey'@'localhost';
the first command creates user. second grants select on databases , tables. third command grants access tables in db1.
is there else specific looking do?
Comments
Post a Comment