Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I reinstalled MySQL by following this guide and after installed it I checked whether the MySQL is ruining by 'service mysql status'. It gives success output. mysql start/running, process 16959

But when i try to check mysqladmin -u root -p status it gives following error even the correct password provided (which is set in the installation process)

mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'

Please help me to get rid of this error and successfully install MySQL.

share|improve this question

migrated from stackoverflow.com Jul 25 '13 at 1:42

This question came from our site for professional and enthusiast programmers.

3  
Sounds like everything is fine, but you're not using the right password. –  Matt Ball Jul 25 '13 at 0:55
    
I entered the right password –  Chanikag Jul 25 '13 at 3:34

1 Answer 1

Try

mysql -u username -p

and then enter your password.

If its not working then you need to reset root password

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.