ec2 LAMP REDhat distro change mysql password error
- by t q
i am on ec2 plain linux and wish to change my mySQL password
ive tried:
sudo mysqladmin -u root -p '***old***' password '***new****'
then it prompts me to enter password
then i enter ***old***
but i keep getting an error message
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
question: how do i change my current password?