this answer is right but it applies differently to my situation. in my .env file
docker cp <db container>:/usr/local/bin/docker-entrypoint.sh /entrypoint.sh
when “docker_setup_db” function gets called, the container attempts to create a user with the name MYSQL_USER (root). Since root is the default user, the error above gets thrown, causing no files inside of /docker-entrypoint-initdb.d to get executed.
to fix change