To create a new user in mysql using grant
GRANT ALL ON my_db.* TO ‘my_user’@localhost IDENTIFIED BY ‘my_pass’;
To grand all permission to the user
GRANT ALL ON my_db.* TO ‘username’@’localhost’;
For more detailed information on how to use the GRANT statement, please visit the ‘MySQL grant‘ article in your hosting encyclopedia or the MySQL documentation (http://dev.mysql.com/doc/refman/5.1/en/grant.html).