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!
@WhiskeyM1ke make sure you use the right username in your MySQL command!
In case your
DB_USERNAME
is laravalor in case your
DB_USERNAME
is sailAlso, make sure to flush the privileges
and exit afterwards