E
E
Evgeny Musonov2020-03-06 14:36:05
Docker
Evgeny Musonov, 2020-03-06 14:36:05

Why does php artisan migrate throw an error with docker?

I use docker, did it laravel new blog
later php artisan migrateand gives an error:

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (SQL: select * from information_schema.tables where table_schema = books and table_name = migrations and table_type = 'BASE TABLE')

I don’t understand why he is looking for the migrations table in information_schema, which does not exist?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question