mysql grant access to one database

Solutions on MaxInterview for mysql grant access to one database by the best coders in the world

showing results for - "mysql grant access to one database"
Valentina
19 Aug 2016
1//create the user:
2CREATE USER 'user'@'hostname' IDENTIFIED BY 'password';
3
4//give it access to the database dbTest
5GRANT ALL PRIVILEGES ON dbTest.* To 'user'@'hostname' ;
6