Q:

Problems using mysql

I just opened mysql by typing "mysql" in the terminal.
Then, I went to create a database which threw this error :- 
mysql> create database test2;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'test2'
mysql>

How do I fix this ?
P.S - I've installed LAMP using tasksel.
Thanks.

A:

Try this.  Start MySQL as root, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
mysql -u root -p

