Hi!

We have started doing some rather large replace intos and inserts
(~3MB) using a client written in C.  However, these queries are truncating
at around 100k.  There is no error returend by the connection, but, the
error log does have errors such as these:

010323 11:15:19  Aborted connection 45 to db: 'unconnected' user: 'root'
host: `localhost' (Got timeout reading communication packets)

The same occurs if I pipe the query directly to mysql from the command
line.  No error, but the data field only has about 100k of the data there
before it just stops.

The table looks like this:

# MySQL dump 8.13
#
# Host: localhost    Database: reflectivity
#--------------------------------------------------------
# Server version        3.23.35

#
# Table structure for table 'measurement_extended_data'
#

CREATE TABLE measurement_extended_data (
  content_typeID tinyint(3) unsigned NOT NULL default '0',
  contentID int(10) unsigned NOT NULL default '0',
  arrayID smallint(5) unsigned NOT NULL default '0',
  positionID mediumint(8) unsigned NOT NULL default '0',
  testID smallint(5) unsigned NOT NULL default '0',
  iteration smallint(5) unsigned NOT NULL default '0',
  test_locationID smallint(5) unsigned NOT NULL default '0',
  date_added int(10) unsigned NOT NULL default '0',
  added_by mediumint(8) unsigned NOT NULL default '0',
  data blob NOT NULL,
  PRIMARY KEY
(content_typeID,contentID,arrayID,positionID,testID,iteration),
  KEY test_locationID (test_locationID),
  KEY testID (testID)
) TYPE=MyISAM;

Smaller queries work fine.  It's just when they seem to be over 1 or 2MB.  

/etc/my.cnf looks like this:
# MySQL Configuration File
#
# One can use all long options that the program supports.
# Run the program with --help to get a list of available options

# This will be passed to all mysql clients
[client]
port            = 3306
socket          = /tmp/mysql.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# The MySQL server
[mysqld]
port            = 3306
socket          = /tmp/mysql.sock
skip-locking
set-variable    = key_buffer=256M
set-variable    = max_allowed_packet=7096128
set-variable    = thread_stack=128K
set-variable    = back_log=50
set-variable    = max_connections=512
set-variable    = tmp_table_size=15M
set-variable    = table_cache=6000
set-variable    = sort_buffer=3584K
set-variable    = join_buffer=512K
set-variable    = connect_timeout=2
set-variable    = record_buffer=1M
set-variable    = flush_time=900
set-variable    = wait_timeout=300

[mysqldump]
quick
set-variable    = max_allowed_packet=16M

[mysql]
no-auto-rehash

[myisamchk]
set-variable    = key_buffer=32M
set-variable    = sort_buffer_size=48M

As you can see we bumped up the max_allowed_packet because we were getting
"server has gone away" errors.

- Box is a 1Ghz XEON /w Redhat 7.2 and 1GB RAM
- MySQL version is:  3.23.35
- Query is a fairly straight forward insert or replace into and is
  verified as clean.

Am I missing a configuration directive?  Is something else up?

Thanks!
Seth


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to