$ mysql -u root -p
> create database _db_ CHARACTER SET utf8;
> grant usage on *.* to _dbusr_@localhost identified by '_dbpass_';
> grant all privileges on _db_.* to _dbusr_@localhost ;

Replace

  • _db_ - database name
  • _dbusr_ - db username
  • _dbpass_ - db password

Or consider CLI tool:

mysqladmin create _db_