SyntaxFix
Write A Post
Hire A Developer
Questions
For security reason mysql -u root wont work untill you pass -p in command so try with below way
mysql -u root -p[Enter] //enter your localhost password