Level 102
Try allowing all hosts
CREATE USER 'vourge'@'%' IDENTIFIED BY 'Iv%**Wr52LhQ';
GRANT ALL PRIVILEGES ON halls.* TO 'vourge'@'localhost';
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
This is a part of the .env file
DB_CONNECTION=mysql
DB_HOST=lineke-db
DB_PORT=3306
DB_DATABASE=halls
DB_USERNAME="arsec"
DB_PASSWORD="RMDPst^2jhK@2"
DB_ROOT_PASSWORD="OfWIIlEJrozT*kA"
When I ran docker compose up -d, the database user was created with a wildcard host and the following privileges:
mysql> SHOW GRANTS FOR 'arsec'@'%';
GRANT USAGE ON *.* TO `arsec`@`%`
GRANT ALL PRIVILEGES ON `halls`.* TO `arsec`@`%`
Am unable to login with this user even at the mysql command line level
docker-compose exec lineke-db /bin/bash
I have created a new user:
CREATE USER 'vourge'@'localhost' IDENTIFIED BY 'Iv%**Wr52LhQ';
GRANT ALL PRIVILEGES ON halls.* TO 'vourge'@'localhost';
I can login with this user at the Mysql level command line but am not able to run php artisan migrate command even after restarting the containers.
Please or to participate in this conversation.