Run this command in sail project folder:
docker-compose exec mysql bash
execute the mysql -u root -p
command
provide the default password password
then executes
# May be any user created with sail docker-compose
#
GRANT ALL PRIVILEGES ON *.* TO '<sail-user-from-docker-compose-yml>'@'%';
and
FLUSH PRIVILEGES;
that`s it!
ERROR 1045 (28000): Access denied for user 'sail'@'%' (using password: YES)