MYSQL_ROOT_PASSWORD is set but getting "Access denied for user 'root'@'localhost' (using password: YES)" in docker container
I have a docker-compose file and a Dockerfile. MySQL is installed properly. I have set MYSQL_ROOT_PASSWORD . But when trying to access mysql db, getting the error - Access denied. I have read the other threads of this site, but couldn't get that much help. :( Here is my docker-compose file: version: '3' volumes: db_data: {} services: db: build: context: . do