I´m trying to install Silverstripe on a Server with the MySQL Connection Details like following:
Hostname localhost:/tmp/mysql5.sock
Socket /tmp/mysql5.sock
Entering one of these addresses in the Install Form for Database server brings up following error on submit for localhost:/tmp/mysql5.sock:
I couldn't find a database server on 'localhost:/tmp/mysql5.sock': Connection refused"
or for /tmp/mysql5.sock
I couldn't find a database server on '/tmp/mysql5.sock': php_network_getaddresses: getaddrinfo failed: Name or service not known
and just localhost shows this error:
I couldn't find a database server on 'localhost': Connecting to 3.22, 3.23 & 4.0 servers is not supported
Thanks,
Florian
Basically, there was something wrong with the server settings:
This is what I added to
_config.php:then the db connection looked like this: