title: Fatal Error Encountered During command execution in remote Mysql connection
body: <p>When I connect to my remote server from C# application getting an error like </p>
  
  <pre><code>MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. 
  </code></pre>
  
  <p>My connection string is </p>
  
  <pre><code>connectionString = "Server=xxx.xxx.xx.xx;" + "Database=testdb;" + "Uid=abc;" + "Pwd=abc123;SslMode=none";
  connection = new MySqlConnection(connectionString);
  connection .open();
  </code></pre>
  
  <p>It is not working in some pcs.</p>
  
  <p>Detailed error as follows</p>
  
  <pre><code>MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. 
  ---&gt; MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered attempting to read the resultset. 
  ---&gt; MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. 
  ---&gt; System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. 
  ---&gt; System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
     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 inner exception stack trace ---
     at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
     at MySql.Data.MySqlClient.TimedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
     at MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count)
     at MySql.Data.MySqlClient.MySqlStream.LoadPacket()
     at MySql.Data.MySqlClient.MySqlStream.LoadPacket()
     at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
     at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32&amp; affectedRow, Int64&amp; insertedId)
     at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32&amp; affectedRows, Int64&amp; insertedId)
     at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
     at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
     at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
     at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
     at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
     at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader()
     at MySql.Data.MySqlClient.Driver.LoadServerProperties(MySqlConnection connection)
     at MySql.Data.MySqlClient.Driver.Configure(MySqlConnection connection)
     at MySql.Data.MySqlClient.MySqlConnection.Open()
     at Mlounge.db.DbPurchase.GetPurchaseData()
     at Mlounge.PurchaseForm.LoadPurchaseData()
     at Mlounge.PurchaseForm.PurchaseForm_Load(Object sender, EventArgs e)
     at System.Windows.Forms.Form.OnLoad(EventArgs e)
     at System.Windows.Forms.Form.OnCreateControl()
     at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
     at System.Windows.Forms.Control.CreateControl()
     at System.Windows.Forms.Control.WmShowWindow(Message&amp; m)
     at System.Windows.Forms.Control.WndProc(Message&amp; m)
     at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
     at System.Windows.Forms.Form.WmShowWindow(Message&amp; m)
     at System.Windows.Forms.Form.WndProc(Message&amp; m)
     at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
     at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
     at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 
  </code></pre>