php 连接MSSQL 登不上!帮看看!
<?$link=mssql_connect("localhost","gyjs","xxx");if(!$link){//用die()函数显示信息并结束当前脚本//用my...
<?
$link = mssql_connect ( "localhost","gyjs","xxx");
if(!$link){
//用die()函数显示信息并结束当前脚本
//用mysql_error函数返回上一个MySQL操作产生的错误信息
die ("未能连接到MySQL服务器:".mysql_error() );
}
echo '连接成功';
?>
报错!
Warning: mssql_connect() [function.mssql-connect]: message: 用户 'WEB1\IUSR_WEB1' 登录失败。 (severity 14) in D:\web\gyjssx\123.php on line 2
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: localhost in D:\web\gyjssx\123.php on line 2
未能连接到MySQL服务器
加上端口号也是一样的!
MSSQL是2000的
phpinfo()看到下面显示是:
Library version 7.0 与这个有关没得!
php配置情况:
mssql
MSSQL Support enabled
Active Persistent Links 0
Active Links 0
Library version 7.0
Directive Local Value Master Value
mssql.allow_persistent On On
mssql.batchsize 0 0
mssql.compatability_mode Off Off
mssql.connect_timeout 5 5
mssql.datetimeconvert On On
mssql.max_links Unlimited Unlimited
mssql.max_persistent Unlimited Unlimited
mssql.max_procs Unlimited Unlimited
mssql.min_error_severity 10 10
mssql.min_message_severity 10 10
mssql.secure_connection On On
mssql.textlimit Server default Server default
mssql.textsize Server default Server default
mssql.timeout 60 60 展开
$link = mssql_connect ( "localhost","gyjs","xxx");
if(!$link){
//用die()函数显示信息并结束当前脚本
//用mysql_error函数返回上一个MySQL操作产生的错误信息
die ("未能连接到MySQL服务器:".mysql_error() );
}
echo '连接成功';
?>
报错!
Warning: mssql_connect() [function.mssql-connect]: message: 用户 'WEB1\IUSR_WEB1' 登录失败。 (severity 14) in D:\web\gyjssx\123.php on line 2
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: localhost in D:\web\gyjssx\123.php on line 2
未能连接到MySQL服务器
加上端口号也是一样的!
MSSQL是2000的
phpinfo()看到下面显示是:
Library version 7.0 与这个有关没得!
php配置情况:
mssql
MSSQL Support enabled
Active Persistent Links 0
Active Links 0
Library version 7.0
Directive Local Value Master Value
mssql.allow_persistent On On
mssql.batchsize 0 0
mssql.compatability_mode Off Off
mssql.connect_timeout 5 5
mssql.datetimeconvert On On
mssql.max_links Unlimited Unlimited
mssql.max_persistent Unlimited Unlimited
mssql.max_procs Unlimited Unlimited
mssql.min_error_severity 10 10
mssql.min_message_severity 10 10
mssql.secure_connection On On
mssql.textlimit Server default Server default
mssql.textsize Server default Server default
mssql.timeout 60 60 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询