Php mssql_connect无法连接到服务器
我正在尝试通过debian服务器中的php连接到远程sql server数据库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); ?>
<?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