DEV Community

Discussion on: docker-compose up your entire Laravel + Apache + MySQL development environment.

 
veevidify profile image
V

that probably mean your database username and password are not set to what the docker container is built with.

Make sure your environment variables for the mysql service (specified in docker-compose.yml) are consistent with the process you are using to access the database (whatever you are trying that yields that error).