Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Maximum Rows in a Dataset/DataReader? (no replies)

$
0
0
Hello everyone,

I hope you can help! I am running a program that reads a MySQL Database and returns a dataset with approx 4 million rows. I am then doing some work and updating each row sequentially basically to change a flag from 0 to 1 or 2. Here is the error I am receiving:

************** Exception Text **************
MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during data read. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream.
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.FetchDataRow(Int32 statementId, Int32 columns)
at MySql.Data.MySqlClient.Driver.FetchDataRow(Int32 statementId, Int32 columns)
at MySql.Data.MySqlClient.ResultSet.GetNextRow()
at MySql.Data.MySqlClient.ResultSet.NextRow(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlDataReader.Read()
at MySql.Data.MySqlClient.MySqlDataReader.Read()
at NeocolExtractorTool.frmMain.btnStart_Click(Object sender, EventArgs e) in C:\Users\NeocolDJB\documents\visual studio 2010\Projects\Neocol Extractor Tool\Neocol Extractor Tool\frmMain.vb:line 222
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


For information, please find the following:

Full problem description:

I am using a standard datareader on a while datareader.read. After exactly 5,022 reads, the above error occurs. Since I have a flag to say whether the work has been processed, I can continue where I left off. I did this, and again 5,022 and the above error. It doesnt matter what data is in the data reader, it always happens at exactly 5,022 rows.

The create database statement:

CREATE DATABASE 'test' /*!40100 DEFAULT CHARACTER SET latin1 */

The table contains sensitive information that I'm not sure I can give, however, they are a standard list of columns mostly with strings. No foreign keys and 1 primary key.

The last options is ENGINE=InnoDB AUTO_INCREMENT=530 DEFAULT CHARSET=latin1

Some version information:

.NET Connector Version : 6.3.4
MySQL Server version : 5.1
Visual Studio Version : 2010

I have done some research and found plenty of bugs listed however, none of them seem to point to this version and indeed were all resolved prior to this version. I'm hoping this is a simple setting that I am missing, however, any advise would be extremely helpful, as I must start to process the 4 million rows of data by tomorrow morning.

Thank you very much in advance,

Darren Bridle

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>