MySQL Forums
Forum List  »  MySQL & Kubernetes

Access denied for user 'root'@'localhost' in Kubernetes
Posted by: Dannie Tjahjono
Date: November 09, 2021 08:51PM


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

2) According to Google, I need to reset the root account. But how to reset if I can't even connect 🥴

Options: ReplyQuote

Written By
Access denied for user 'root'@'localhost' in Kubernetes
November 09, 2021 08:51PM

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.