mysql user access to database
snippet in sql

mysql user access to database

user3301

GRANT ALL PRIVILEGES ON dbTest.* To 'user'@'hostname' IDENTIFIED BY 'password';

create user mysql

user6538

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';

grant user all privileges

user4887

mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'localhost';