How to: create a MySQL database and user

I always seem to forget this:

$ mysql -u root -p

Enter password: enter mysql-root-user passwd

mysql> CREATE DATABASE DATABASENAME

mysql> GRANT ALL PRIVILEGES ON DBNAME.* to "DBUSER"@"localhost" IDENTIFIED BY "DBPASSWORD";

mysql> FLUSH PRIVILEGES;

mysql> EXIT

$