i am on ec2 plain linux and wish to change my mySQL password
sudo mysqladmin -u root -p '***old***' password '***new****'
then it prompts me to enter password
then i enter
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?
when i put this in, no space in between -p and the old password i get a list of definition
sudo mysqladmin -u root -p'***old***'
when i put this in
sudo mysqladmin -u root -p password '***new***'
i get the same error message as above