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: