INSERT INTO mysql.user(HOST,USER,PASSWORD) VALUES("localhost","exam",PASSWORD("exam"));
FLUSH PRIVILEGES;
CREATE DATABASE ecm
GRANT ALL PRIVILEGES ON ecm.* TO exam@localhost IDENTIFIED BY 'exam';