mysql> create database db_name; mysql> grant all on db_name.* to 'user'@'localhost' identified by 'password'; mysql> flush privileges;
mysql> create database db_name; mysql> grant all on db_name.* to 'user'@'localhost' identified by 'password'; mysql> flush privileges;