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

Asked by Rajesh kannan

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
Rajesh kannan (rajeshkannan007) said :
#2

Thanks Jason, that solved my question.