#Can not run migrations in new laravel sail project

3 messages · Page 1 of 1 (latest)

lament whale
#

When i try 'sail artisan migrate' I get: SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = organiser and table_name = migrations and table_type = 'BASE TABLE')

Getting into my database on Sequel Ace is no problem.

I tried pretty much everything i found on Stackoverflow.

.env file & docker-compose.yml in attachments

carmine blaze
#

You don't connect using localhost, but using the service name, because of Docker networking. So you'd connect to DB_HOST=mysql in your case

lament whale
#

Thanks!