Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/288.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php mssql_connect无法连接到服务器_Php_Sql Server_Debian - Fatal编程技术网

Php mssql_connect无法连接到服务器

Php mssql_connect无法连接到服务器,php,sql-server,debian,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); ?>

我正在尝试通过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);
?>

有什么建议吗?谢谢

您有权访问SQL Server错误日志吗?您想检查那里的状态并匹配严重性为14的状态=?这篇文章:@SQLDBA您好,谢谢您的回答。我无法访问SQL server错误日志。
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