尝试安装roundcube -有一些与驱动程序配置相关的问题-我现在非常确定驱动程序已经配置好了-我收到了一个错误:
"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);
?>用户名和通行证都很好。事实上,我可以使用相同的凭据通过Toad连接到db实例。
在MSSQL中,你可能需要告诉服务器允许来自远程机器的连接等等--但是通过php连接和通过Toad连接肯定是一样的?
我已经尝试设置127.0.0.1而不是localhost,以防需要通过服务器名进行连接。还是没有joy。
为了让它正常工作,我还需要配置什么吗?
发布于 2010-09-28 22:15:48
我将服务器更改为127.0.0.1:3306,它已连接!!
https://stackoverflow.com/questions/3813293
复制相似问题