[英][Microsoft][SQL Server Native Client 11.0]Shared Memory Provider: Timeout error [258]
Good day. 美好的一天。
I have website on php5. 我在php5上有网站。
All query perform with sqlsrv; 所有查询都使用sqlsrv执行;
When i make query i get error: 当我查询时出现错误:
[Microsoft][SQL Server Native Client 11.0]Shared Memory Provider: Timeout error [258]
How to fix error? 如何解决错误?
Try extending the timeout value in your connectionString in PHP. 尝试在PHP的connectionString中扩展超时值。
You need to change some setting in your php.ini : upload_max_filesize = 2M ;or whatever size you want 您需要在php.ini中更改一些设置:upload_max_filesize = 2M;或您想要的任何大小
max_execution_time = 60 ; max_execution_time = 60; also, higher if you must 同样,如果必须的话,更高
Were your PHP.ini is depends on your enviroment 您的PHP.ini是否取决于您的环境
Setting max_execution_time
to 0
(unlimited) alone, did not do it for me. 仅将max_execution_time
设置为0
(无限制)对我来说不是这样做。
However, increasing the memory limit default from 128MB
to 2GB
worked: 但是,将默认的内存限制从128MB
增加到2GB
可行的:
max_execution_time = 0
memory_limit = 2048M
PHP 5.3.19到Sql Server 2008的所有查询都超时,包括'select getdate()'将两个参数max_execution_time更改为0且memory_limit = 1024M帮了我大忙。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.