MySql.Data.MySqlClient.MySqlException: Timeout expired

前端 未结 2 1652
傲寒
傲寒 2020-12-20 12:51

In recent times, a particular page in my web app throws the

Exception Details: MySql.Data.MySqlClient.MySqlException: Timeout expired. The timeo

2条回答
  •  眼角桃花
    2020-12-20 13:27

    You could set command timeout to 0, its not a good idea though. Some requests could go on indefinitely.

    There is an underlying problem that is causing the queries to time out in the first place. Are you inserting, updating, or in any way working with large binary values that would lock the table? That is the most common reason I see for an error like this on such a small amount of data.

提交回复
热议问题