1
2
3
4
5
CREATE DATABASE my_database;
GRANT ALL PRIVILEGES ON my_database.* 
TO 'my_user'@'localhost'
IDENTIFIED BY 'my_password' 
WITH GRANT OPTION;