[Microsoft] [用于SQL Server的ODBC驱动程序11] TCP Provider:超时错误[258]。

时间:2018-08-27 08:42:17

标签: php sql-server pdo windows-server-2012

我有windows server 2012个SQL Server数据库。我安装了xampp以便通过php pdo模块运行php脚本。

此php应用程序在windows server 2008的其他系统中可以正常工作,但这里我有此错误

  

致命错误:消息为'SQLSTATE [08001]的未捕获异常'PDOException':[Microsoft] [ODBC   [SQL Server] TCP提供程序的驱动程序11:超时错误[258]。在   C:\ xampp \ htdocs \ app ... \ index.php:20堆栈跟踪:#0   C:\ xampp \ htdocs \ app ... \ index.php(20):   PDO-> __ construct('sqlsrv:Server = 1 ...','username','pass')#1   {main}在第20行的C:\ xampp \ htdocs \ app ... \ index.php中抛出

有什么主意吗?

0 个答案:

没有答案