我正在尝试使用 MySQL 连接详细信息在服务器上安装 Silverstripe,如下所示:
主机名localhost:/tmp/mysql5.sock
套接字/tmp/mysql5.sock
在数据库服务器的安装表单中输入这些地址之一会在提交 localhost:/tmp/mysql5.sock 时出现以下错误:
I couldn't find a database server on 'localhost:/tmp/mysql5.sock': Connection refused"
或 /tmp/mysql5.sock
I couldn't find a database server on '/tmp/mysql5.sock': php_network_getaddresses: getaddrinfo failed: Name or service not known
并且只是 localhost 显示此错误:
I couldn't find a database server on 'localhost': Connecting to 3.22, 3.23 & 4.0 servers is not supported
谢谢,弗洛里安