Home > database >  Mysql connection timeout
Mysql connection timeout

Time:10-04

I wrote a script task plan, execution at 3 in the morning every day, used to statistics, but every day will appear this kind of circumstance:

MySql. Data. MySqlClient. MySqlException x80004005 (0) : The Timeout expired. The Timeout period elapsed prior to completion of The operation or The server is not responding. - & gt; System. TimeoutException: unable to read data from the transport connection: because the connected party after a period of time there is no right answer or connection host don't respond, open the connection attempt failed, and - & gt; System. IO. IOException: unable to read data from the transport connection: because the connected party after a period of time there is no right answer or connection host don't respond, open the connection attempt failed, and - & gt; System.Net.Sockets.SocketException: because the connected party after a period of time there is no right answer or connection host don't respond, open the connection attempt failed,


For the first time, I may appear this kind of situation, and then execute once, might not appear this kind of circumstance, ask god help me solve the, for several days, I can't know the reason, set up the database commandTimeout and database connection timeout is useless,

CodePudding user response:

Three o 'clock in the morning have a backup task? Other tasks or not
  • Related