简体   繁体   English

[Microsoft] [SQL Server本机客户端11.0]共享内存提供程序:超时错误[258]

[英][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? 如何解决错误?

  • This error is probably caused by a very slow connection or SQL query taking a long time. 此错误可能是由于连接速度很慢或SQL查询花费很长时间而引起的。
  • It is not an SQL Server problem. 这不是SQL Server问题。
  • Try extending the timeout value in your connectionString in PHP. 尝试在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 您需要在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.

相关问题 超时问题-SQL Server Native Client 10.0,TCP提供程序-错误258 - Timeout issue - SQL Server Native Client 10.0, TCP Provider - Error 258 …/ db.php:46中的消息“ SQLSTATE [07002]:[Microsoft] [SQL Server Native Client 11.0] COUNT字段不正确或语法错误”的“ PDOException” - 'PDOException' with message 'SQLSTATE[07002]: [Microsoft][SQL Server Native Client 11.0]COUNT field incorrect or syntax error' in …/db.php:46 无法运行查询:SQLSTATE [42000]:[Microsoft] [SQL Server Native Client 11.0] [SQL Server]')'附近的语法不正确 - Failed to run query: SQLSTATE[42000]: [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near ')' [Microsoft] [SQL Server Native Client 11.0] [SQL Server]无效的对象名称 - [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid object name [Microsoft] [SQL Server本机客户端11.0] SQL Server网络接口:连接字符串无效 - [Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: Connection string is not valid 在SQL Server Native Client 10.0中执行查询时出错 - Error executing Queries in SQL Server Native Client 10.0 SQLSTATE[08001]:[Microsoft][ODBC Driver 17 for SQL Server]TCP 提供程序:错误代码 0x2746 - SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2746 TCP 提供程序连接被拒绝 - Laravel 6 和 SQL 服务器 (Microsoft) 和 Laragon - TCP Provider connection refused - Laravel 6 and SQL Server (Microsoft) and Laragon 错误:SQLSTATE[08001]:[Microsoft][ODBC Driver 17 for SQL Server]客户端不支持加密 - Error:SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]Encryption not supported on the client SQL Server 2008 R2本机客户端 - SQL Server 2008 R2 Native Client
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM