Docker Community Forums

Share and learn in the Docker community.

How to fix that mysql deny in docker container by interaction


(Lygoods) #1

How to fix that mysql deny in docker container by interaction
command line below.

docker exec -it mysql bash
root@0e8219f886bc:/#
root@0e8219f886bc:/# mysql -u root -p
ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)


(Sam) #2

this is normal mysql configuration… first i would look at the doc for the image you are using
https://hub.docker.com/_/mysql/
then look at the doc for mysql