assign user to database mysql
snippet in sql

create user mysql

user7182

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

assign user to database mysql

user4351

GRANT type_of_permission ON database_name.table_name TO ‘username’@'localhost’;