SyntaxFix
Write A Post
Hire A Developer
Questions
I had the same problem. mysql -u root -p worked for me. It later asks you for a password. You should then enter the password that you had set for mysql. The default password could be password, if you did not set one. More info here.
mysql -u root -p
password