I am trying to create a database via the command line. This what I typed:
$ mysql
mysql> CREATE DATABASE my_db;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'my_db'
After looking at advice from ERROR 1044 (42000): Access denied for 'root' With All Privileges and mysql logging in as different user, I ran
$ mysql -u myusername -p
ENTER PASSWORD:
ERROR 1045 (28000): Access denied for user 'myusername'@'localhost' (using password: YES)
What is wrong?