php – [Microsoft] [SQL Server Native Client 11.0]共享内存提供程序:超时错误[258]

美好的一天.

我在php5上有网站.

所有查询都使用sqlsrv执行;

当我进行查询时,我得到错误:

[Microsoft][SQL Server Native Client 11.0]Shared Memory Provider: Timeout error [258]

如何修复错误?

最佳答案 >此错误可能是由于连接速度非常慢或SQL查询需要很长时间.

>这不是SQL Server问题.

>尝试在PHP中的connectionString中扩展超时值.

See this previous answer

You need to change some setting in your php.ini : upload_max_filesize
= 2M ;or whatever size you want

max_execution_time = 60 ; also, higher if you must

Were your PHP.ini is depends on your enviroment

点赞