laravel-sync-migration icon indicating copy to clipboard operation
laravel-sync-migration copied to clipboard

php_network_getaddresses: getaddrinfo failed error running in sail/docker

Open jayenne opened this issue 3 years ago • 2 comments

I'm not sure why but wonder if it's conected to runnning under laravel/sail docker (mariadb) where my DB_HOST is not localhost but mariadb instead?

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known (SQL: select * from information_schema.tables where table_schema = mydb and table_name = users and table_type = 'BASE TABLE')

jayenne avatar Dec 16 '21 11:12 jayenne

This is a very interesting issue!

Can you provide us with the steps to produce such an error?

abdumu avatar Dec 16 '21 12:12 abdumu

I can test my hypothosis later but but my stack showing this error is.. install a fresh laravel jetstream sail with mariaDB using livewire / alpinejs config the env/config spin sail up install laravel-sync-migration see error

*I'll perform this myself later and see if i can isolate it to docker or database

jayenne avatar Dec 16 '21 12:12 jayenne

since there is no update about this issue, i'll close it for now.

abdumu avatar Dec 29 '23 05:12 abdumu