MySQL newspaper fatal error encountered during command execution. Error resolution

Source: Internet
Author: User
Tags stack trace


{MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered attempting to read the resultset. --->

MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. ---> System.IO.IOException: Unable to read data from the transport connection: The remote host forcedly closed an existing connection. . ---> System.Net.Sockets.SocketException: remote master

The machine forcibly closed an existing connection.
   At System.Net.Sockets.Socket.Receive (Byte [] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   At System.Net.Sockets.NetworkStream.Read (Byte [] buffer, Int32 offset, Int32 size)
   --- End of internal exception stack trace ---
   In MySql.Data.Common.MyNetworkStream.HandleOrRethrowException (Exception e)
   In MySql.Data.Common.MyNetworkStream.Read (Byte [] buffer, Int32 offset, Int32 count)
   In MySql.Data.MySqlClient.TimedStream.Read (Byte [] buffer, Int32 offset, Int32 count)
   At System.IO.BufferedStream.Read (Byte [] array, Int32 offset, Int32 count)
   In MySql.Data.MySqlClient.MySqlStream.ReadFully (Stream stream, Byte [] buffer, Int32 offset, Int32 count)
   In MySql.Data.MySqlClient.MySqlStream.LoadPacket ()
   In MySql.Data.MySqlClient.MySqlStream.LoadPacket ()
   In MySql.Data.MySqlClient.MySqlStream.ReadPacket ()
   In MySql.Data.MySqlClient.NativeDriver.GetResult (Int32 & affectedRow, Int64 & insertedId)
   In MySql.Data.MySqlClient.Driver.GetResult (Int32 statementId, Int32 & affectedRows, Int64 & insertedId)
   In MySql.Data.MySqlClient.Driver.NextResult (Int32 statementId, Boolean force)
   In MySql.Data.MySqlClient.MySqlDataReader.NextResult ()
   In MySql.Data.MySqlClient.MySqlDataReader.NextResult ()
   In MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior behavior)
   In MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior behavior)
   In MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader (CommandBehavior behavior)
   At System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader (CommandBehavior behavior)
   In System.Data.Common.DbDataAdapter.FillInternal (DataSet dataset, DataTable [] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   In System.Data.Common.DbDataAdapter.Fill (DataTable [] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
   In System.Data.Common.DbDataAdapter.Fill (DataTable dataTable) 


Well, quote fatal error encountered during command execution.



What is the reason?



I don't know......






In the connection string, add


Allow User variables=true


All right......



Why is it good?



I don't know......



MySQL newspaper fatal error encountered during command execution. Error resolution


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.