Access denied for user 'root'@'localhost' (using password: YES)

i restarted the server then went to start the containers and just got stuck on waiting for configurator, so i cancelled it, ran the down command, then re ran the up command but without the -d so i could see any errors and this was just spammed,

db-1 | 2025-02-27 17:56:44 33 [Warning] Access denied for user ‘root’@‘localhost’ (using password: YES)

the password in the compose file works as i removed the health check lines, started the db with up -d db and then tested it with

docker exec -it db-1 mysql -u root -p

Check this documentation to resolve the issue:

I’m unable to run any of this as i am unable to start the stack as the stack fails the health check due to the ping from the health check getting this

db-1 | 2025-02-27 17:56:44 33 [Warning] Access denied for user ‘root’@‘localhost’ (using password: YES)

any further help on this as like i said im unable to start the stack as its the health check thats failing, everything else works fine

ive disabled the healthcheck and made it not a requirement and everything works perfect, its just the healtcheck fails and was preventing it from starting

Probably best if you can post here your whole “db” service from your compose file so we can take a look. Otherwise we’ll just be taking guesses in the dark. Just make sure to redact your password.