While logged in as root:
$ mysql --user=root mysql
mysql> grant all privileges on *.* to 'youruser'@'localhost' identified by 'yourpassword' with grant option;
create database yourdb;
mysql> grant all privileges on *.* to 'youruser'@'localhost' identified by 'yourpassword' with grant option;
create database yourdb;