Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

CakePHPでコンバートができなくなった

More than 1 year has passed since last update.

タイトル通り、コンバートを掛けようとしたらエラーが出た。

Exception: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known in 
[/usr/share/nginx/~~~/hogehoge.php, line 47]

環境は
- VirtualBox
- CentOS7
- CakePHP

解決

レポジトリ/project/config/app.php

'Datasources' => ['source' => ['host' => **ここをIPアドレスに**]]

今回はこの方法で解決しました。

Dammyyy
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away