Lost connection error although CommandTimeout, ConnectionTimeout and MySQLServer timeouts are increased
Posted: Tue 06 Feb 2007 14:23
Hello,
I got a problem where I get the well known "Lost connection" error while deleting entries from a big table.
The table looks like:
DROP TABLE IF EXISTS `aoi_delete_db`.`inspectionresults`;
CREATE TABLE `aoi_delete_db`.`inspectionresults` (
`ResultIndex` bigint(20) unsigned NOT NULL auto_increment,
`Time` datetime NOT NULL default '0000-00-00 00:00:00',
`ProductIndex` int(10) unsigned NOT NULL default '0',
`LayerIndex` int(10) unsigned NOT NULL default '0',
`BatchIndex` int(10) unsigned NOT NULL default '0',
`SectionIndex` int(10) unsigned NOT NULL default '0',
`Review` varchar(40) NOT NULL default '',
`Image` mediumblob,
`CameraIndex` int(10) unsigned default NULL,
`InspectionIndex` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`ResultIndex`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295 AVG_ROW_LENGTH=109596;
contains about 8000 rows and is about 900 Mb big.
The DELETE statement I try to execute is an ordinary "DELETE FROM ... WHERE BatchIndex=..." statement and should delete about 7600 rows.
I have already set all timeouts I could find ( Connection, Command and MySQLServer timeouts) to one hour (3600 seconds) and have set the max packet size to 128 Mb. I also tried setting the Direct-property of the connection to false, but that only gave me a "Not-Supported" exception.
Nothing of what I did helped, I always get the "Lost connection" error.
What else can I do?
Thanks a lot,
Vince
I got a problem where I get the well known "Lost connection" error while deleting entries from a big table.
The table looks like:
DROP TABLE IF EXISTS `aoi_delete_db`.`inspectionresults`;
CREATE TABLE `aoi_delete_db`.`inspectionresults` (
`ResultIndex` bigint(20) unsigned NOT NULL auto_increment,
`Time` datetime NOT NULL default '0000-00-00 00:00:00',
`ProductIndex` int(10) unsigned NOT NULL default '0',
`LayerIndex` int(10) unsigned NOT NULL default '0',
`BatchIndex` int(10) unsigned NOT NULL default '0',
`SectionIndex` int(10) unsigned NOT NULL default '0',
`Review` varchar(40) NOT NULL default '',
`Image` mediumblob,
`CameraIndex` int(10) unsigned default NULL,
`InspectionIndex` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`ResultIndex`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295 AVG_ROW_LENGTH=109596;
contains about 8000 rows and is about 900 Mb big.
The DELETE statement I try to execute is an ordinary "DELETE FROM ... WHERE BatchIndex=..." statement and should delete about 7600 rows.
I have already set all timeouts I could find ( Connection, Command and MySQLServer timeouts) to one hour (3600 seconds) and have set the max packet size to 128 Mb. I also tried setting the Direct-property of the connection to false, but that only gave me a "Not-Supported" exception.
Nothing of what I did helped, I always get the "Lost connection" error.
What else can I do?
Thanks a lot,
Vince