LoginSignup
3
0

More than 5 years have passed since last update.

laradockでphp artisan migrateが動作しない時の対処法

Posted at

https://teratail.com/questions/112354
こちらの記事を参照。

Sites/laradock
Sites/myproject

上記のディレクトリ構造で、myproject内で
php artisan migrate
を入力してもエラー
Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
が出力してしまったが、
cd ../laradock
でlaradock内で
docker-compose exec workspace bash
を行い、この中で
php artisan migrate
コマンドを入力すると無事にコマンドが動作した!
うれしー

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0