Lost connection to MySql server during query
Posted: Thu 02 Feb 2012 14:07
Hi,
I've just experienced the same problem posted on http://www.devart.com/forums/viewtopic.php?p=78102. IDE or not, I still get a "Lost connection to MySQL server during query". Full Exception stack is below.
My setup was as follows:
I had a connection open, and I was iterating over ~6000 records (as an IQueryable), taking data from each record and constructing a new OR object (the new OR objects are detached from the context). Each new OR object went into an IList which later would be BulkLoaded, but I never get that far. About 70-80 records into my foreach loop, I encounter the problem below.
My timeout parameters at the server are long. Nothing is shorter than 5 minutes; this occurs a few seconds into my process.
I see that dotConnect for MySql 6.70 is out, but I don't want to upgrade (yet - I am running 6.50.250) unless there is some known issue in there that would address this.
Any help would greatly be appreciated.
Thanks!
Error on reading data from IDataReader.
at Devart.Data.Linq.LinqCommandExecutionException.CanThrowLinqCommandExecutionException(String message, Exception e)
at Devart.Data.Linq.Provider.ObjectReader`1.MoveNext()
at System.Linq.Seq.d__20`1.MoveNext() in C:\dev\wrkspc.......:line 486
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Extract.KPIs() in C:\dev\wrkspc.................:line 162
Lost connection to MySQL server during query
at Devart.Common.aj.a(Exception A_0)
at Devart.Data.MySql.bh.a(Exception A_0)
at Devart.Common.s.e(Byte[] A_0, Int32 A_1, Int32 A_2)
at Devart.Data.MySql.bk.a(Byte[] A_0, Int32 A_1, Int32 A_2)
at Devart.Data.MySql.bk.a()
at Devart.Data.MySql.bk.b(Byte[] A_0)
at Devart.Data.MySql.u.a(Byte[] A_0)
at Devart.Data.MySql.u.a(Byte[] A_0, Boolean A_1)
at Devart.Data.MySql.an.f()
at Devart.Data.MySql.a2.b(Boolean A_0)
at Devart.Data.MySql.MySqlDataReader.a(Boolean A_0)
at Devart.Data.MySql.MySqlDataReader.System.IDisposable.Dispose()
at Devart.Common.l.a(Int32 A_0, Object A_1, Int32 A_2, Object A_3)
at Devart.Common.l.a.a(Int32 A_0, Int32 A_1, Object A_2, l A_3)
at Devart.Common.l.a(Int32 A_0, Int32 A_1, Object A_2)
at Devart.Common.DbConnectionInternal.a(Int32 A_0, Int32 A_1)
at Devart.Common.DbConnectionBase.Close()
at Devart.Data.MySql.MySqlConnection.Close()
I've just experienced the same problem posted on http://www.devart.com/forums/viewtopic.php?p=78102. IDE or not, I still get a "Lost connection to MySQL server during query". Full Exception stack is below.
My setup was as follows:
I had a connection open, and I was iterating over ~6000 records (as an IQueryable), taking data from each record and constructing a new OR object (the new OR objects are detached from the context). Each new OR object went into an IList which later would be BulkLoaded, but I never get that far. About 70-80 records into my foreach loop, I encounter the problem below.
My timeout parameters at the server are long. Nothing is shorter than 5 minutes; this occurs a few seconds into my process.
I see that dotConnect for MySql 6.70 is out, but I don't want to upgrade (yet - I am running 6.50.250) unless there is some known issue in there that would address this.
Any help would greatly be appreciated.
Thanks!
Error on reading data from IDataReader.
at Devart.Data.Linq.LinqCommandExecutionException.CanThrowLinqCommandExecutionException(String message, Exception e)
at Devart.Data.Linq.Provider.ObjectReader`1.MoveNext()
at System.Linq.Seq.d__20`1.MoveNext() in C:\dev\wrkspc.......:line 486
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Extract.KPIs() in C:\dev\wrkspc.................:line 162
Lost connection to MySQL server during query
at Devart.Common.aj.a(Exception A_0)
at Devart.Data.MySql.bh.a(Exception A_0)
at Devart.Common.s.e(Byte[] A_0, Int32 A_1, Int32 A_2)
at Devart.Data.MySql.bk.a(Byte[] A_0, Int32 A_1, Int32 A_2)
at Devart.Data.MySql.bk.a()
at Devart.Data.MySql.bk.b(Byte[] A_0)
at Devart.Data.MySql.u.a(Byte[] A_0)
at Devart.Data.MySql.u.a(Byte[] A_0, Boolean A_1)
at Devart.Data.MySql.an.f()
at Devart.Data.MySql.a2.b(Boolean A_0)
at Devart.Data.MySql.MySqlDataReader.a(Boolean A_0)
at Devart.Data.MySql.MySqlDataReader.System.IDisposable.Dispose()
at Devart.Common.l.a(Int32 A_0, Object A_1, Int32 A_2, Object A_3)
at Devart.Common.l.a.a(Int32 A_0, Int32 A_1, Object A_2, l A_3)
at Devart.Common.l.a(Int32 A_0, Int32 A_1, Object A_2)
at Devart.Common.DbConnectionInternal.a(Int32 A_0, Int32 A_1)
at Devart.Common.DbConnectionBase.Close()
at Devart.Data.MySql.MySqlConnection.Close()