Could not connect: Access denied for user 'root'@'localhost' (using password: YES)

Asked by Rajesh kannan on 2013-02-27

Hi everyone,

while trynig to connect to mysql from terminal using the command

$mysql -u root -p password

I got the following error,...

Could not connect: Access denied for user 'root'@'localhost' (using password: YES)

 can anyone help me to fix this issue..?

Thanks & Regards,
R.Rajesh kannan

Question information

Language:
English Edit question
Status:
Solved
For:
MySQL Server Edit question
Assignee:
No assignee Edit question
Solved by:
Jason
Solved:
2013-06-12
Last query:
2013-06-12
Last reply:
2013-02-27
Best Jason (zzs) said : #1

Please try
$mysql -u root
to check if you can login.

if it is still not, please check here to reset you password,
http://tech.anoj.net/2007/11/access-denied-for-user-rootlocalhost.html

Thanks Jason, that solved my question.