我正在使用C#和MySqlConnector 6.9.3一起使用MySql,因为我正在使用.NET 3.5框架。有时,当我重新启动mysql数据库时,我没有看到此错误,但是有时,我再次看到下面的异常。作为解决以下问题的一部分,尝试增加以下属性,但无济于事:
set net_write_timeout = 99999;设置net_read_timeout = 99999
例外
MySql.Data.MySqlClient.MySqlException : Fatal error encountered during command execution.
----> MySql.Data.MySqlClient.MySqlException : Fatal error encountered attempting to read the resultset.
----> MySql.Data.MySqlClient.MySqlException : Reading from the stream has failed.
----> System.IO.IOException : Unable to read data from the transport connection: A non-blocking socket operation could not be completed immediately.
----> System.Net.Sockets.SocketException : A non-blocking socket operation could not be completed immediately
我看到SO重新启动服务器的帖子,但这并没有帮助我解决问题。有什么想法可以解决吗?