Access denied for user 'root'@'localhost' in Kubernetes
Hi,
1) I creates mysql pod successfully, image: mysql:8.0, but I keep getting this error while trying to connect
$ k exec -it $pod -- bash
root@mysql-deployment-6b98dc844b-crjgf:/# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
root@mysql-deployment-6b98dc844b-crjgf:/# echo $MYSQL_ROOT_PASSWORD
YUIidhb667
2) According to Google, I need to reset the root account. But how to reset if I can't even connect 🥴
Subject
Written By
Posted
Access denied for user 'root'@'localhost' in Kubernetes
November 09, 2021 08:51PM
November 09, 2021 10:15PM
November 10, 2021 12:40AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.