题
尝试安装roundcube的webmail - 有相关的驱动程序配置的一些问题 - 现在我敢肯定,现在驱动程序配置好的 - 我得到一个错误的形式,它:
"A connection attempt failed because the connected party did not properly
respond after a period of time, or established connection failed because
connected host has failed to respond."
现在,这是从下面的文件:
<?php
// hostname or ip of server (for local testing, localhost should work)
$dbServer='localhost';
// username and password to log onto db server
$dbUser='*****';
$dbPass='*****';
// name of database
$dbName='roundcubemail';
$link = mysql_connect("$dbServer", "$dbUser", "$dbPass")or die(mysql_error());
print "Connected successfully<br>";
mysql_select_db("$dbName") or die("Could not select database");
print "Database selected successfully<br>";
// close connection
mysql_close($link);
?>
,其中用户名和通良好。事实上 - 我可以使用相同的凭证通过蟾蜍连接到数据库实例
。在MSSQL,你可能需要告诉服务器只允许从远程计算机连接和所有的 - 而是通过PHP连接肯定是一样的,通过连接蟾蜍?
我试过设置127.0.0.1而不是本地主机的情况下,它是通过服务器名称连接的情况。仍然没有喜悦。
还有什么我可能需要配置得到这个工作?
解决方案
我改变服务器127.0.0.1:3306和它连接的!!
不隶属于 StackOverflow