mysql> GRANT ALL PRIVILEGES ON databasename.* TO databasename@localhost IDENTIFIED BY 'password'.