Create a new mysql user and grant all privileges to them on a database
The following command will create a new user and grant them all the permissions on a database.
To list the permissions granted to a user
grant all privileges on database_name.* to 'username'@'localhost' identified by 'secure_password';
show grants for 'username'@'localhost';