I can’t log into a mysql service which is built on Docker/Apine due to wrong password, what can I do?

I run a docker/alpine based mysql instance for many days, today I want to log into it, but I get the following error:

bash-4.4# mysql -uroot -h 172.19.0.1 -p
Enter password: 
ERROR 1045 (28000): Access denied for user 
'root'@'172.19.0.1' (using password: YES)

I don’t know it is because I used the wrong password or any other causes, what can I do?

Answer

Attribution
Source : Link , Question Author : lily , Answer Author : Community

Leave a Comment