How to connect a socket to the database?
Hello, I two days, can't make Pichu with the database through the socket.
Desktop Ubuntu 16.04, nginx, php7.0-fmp, php7.0-mysql
I did the following:
in the config database added skip-networking and bind-address 127.0.0.1
in the script, changed the host on the path, and set the argument to socket 1.
Error HY000 - 2002 php_network_getaddresses: getaddrinfo failed: Name or service not known
Another interesting point, if the host specify localhost, it will be no such file, although /etc/hosts everything is spelled out
asked July 9th 19 at 10:49
Find more questions by tags * nix-like systemsPHPUbuntuMySQL