Error: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known Posted by davidnewcomb on May 18 2017 in PHP, Yii Framework Recently had a problem with Yii2's migrate when trying to connect to a local database. I added the settings from common and Hey Presto! everything works. more »