E
E
Eka5552016-03-11 00:47:53
PHP
Eka555, 2016-03-11 00:47:53

How to resolve error in vagrant php_network_getaddresses: getaddrinfo failed?

Raised the server on Vagrant ubuntu 14.04 trying to connect to the database via PDO , gives the following error:

PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known

help me solve this problem please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2016-03-11
@Eka555

Show DSN in PDO. You probably didn't write it right.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question