TCP提供商:超时错误[258]

时间:2018-01-22 13:53:44

标签: php sql-server wordpress apache pdo

我在PHP脚本上遇到麻烦,在PHP 5.x上使用Apache上的WordPress。

我已经使用PDO构建了一个在SQLServer上进行查询的WP插件,但是在查询中,WP调试正在返回此警告:

[22-Jan-2018 13:40:57 UTC] PHP Warning:  (null) in C:\xampp\htdocs\confart_intranet\wp-content\plugins\myplugin\myplugin.php on line 342
[22-Jan-2018 13:40:57 UTC] PHP Warning:  PDOStatement::execute(): SQLSTATE[08S01]: Communication link failure: 258 [Microsoft][ODBC Driver 11 for SQL Server]TCP Provider: Timeout error [258].  in C:\xampp\htdocs\confart_intranet\wp-content\plugins\myplugin\myplugin.php on line 342

如果我在SSMS上运行查询,我总会得到一个结果,但在PHP中我得到一个空数组。

感谢大家的帮助和支持。

0 个答案:

没有答案