I have a problem when I setting up wordpress on amazon ec2, but I’m getting an issue about ‘Access denied’.

[root@ip-172-31-25-142 ec2-user]# mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

[root@ip-172-31-25-142 ec2-user]# mysqladmin -u root -p password 6k8zJHLrmWB8bmwV

Enter password:

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

Anyone can help me! Many thank!!!!

Read more here: Get error Access denied for user ‘root’@’localhost’ (using password: NO) when setting WordPress on amazon ec2


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: