mssql_connect无法连接到服务器

时间:2014-04-15 07:30:10

标签: php sql-server debian

我正在尝试通过我们的debian服务器中的php连接到远程sql server数据库。

<?php
// Some basic variables
$Server = "myservername";
$User = "myuser";
$Password = "mypwd";
$Database = "facts_sql";
// Connect to the database
$dbconnect = mssql_connect($Server,$User,$Password);
?>

我得到了错误。

PHP Warning:  mssql_connect(): message: Login failed for user ''. (severity 14) in /var/www/Information.php on line 8
PHP Warning:  mssql_connect(): General SQL Server error: Check messages from the SQL Server (severity 14) in /var/www/Information.php on line 8
PHP Warning:  mssql_connect(): Unable to connect to server: myservername:1433 in /var/www/Information.php on line 8

有什么建议吗?感谢

0 个答案:

没有答案