PHP database connection error
I am getting the following error while trying to create a filament user with the artisan command. I can understand the error is due to not being bale to connect to the DB. Is there a place where I can configure this? Maybe specifically mention a separate connection or something.
12 Replies
This is your normal Laravel DB connection.
Which is configured in
.env
Thank you for your prompt response. I have a different port for the connection as i have multiple apps running in my machine.. So I change the FORWARD_DB_PORT to 3309...
I can connect to the DB from my app without any problems... Only the filament user command throws me this. Any specific config to add/modify?
That's weird. Filament isn't using another connection.
the sql part frm docker-compose
Are you running the command inside the sail image?
Yeah.
I have never used Sail. Sorry, not a big help
No worries. Thanks for your help. I'll post the answer here if I find one!
if networks is sail , host shouldn't be sail ?
Please check if your MariaDB server is running in Docker Desktop.