Lost connection to MySQL server during query

Bug #502518 reported by Beach Ball
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

MySQL loses the connection during the loading of large data sets into a table. For example, the following command:

load data infile '/tmp/invoices.txt' into table Invoices;

ends in the following error:

ERROR 2013 (HY000): Lost connection to MySQL server during query

I have searched different forums and read reports that this is a MySQL bug that has been fixed; however, the version of MySQL in Ubuntu 8.0.4 is too old to contain this fix.

See http://forums.mysql.com/read.php?93,269108,270139#msg-270139

Is there any way to get the fixed implemented for MySQL running on Ubuntu 8.0.4? This is a mission critical server that it is running on.

Revision history for this message
Beach Ball (surfin10) wrote :

Additionally, this bug doesn't affect just the ability to import large data sets. It also affects the ability to perform ALTER functions. I received the same error when trying to rename a column on a table containing several million rows.

Revision history for this message
Chuck Short (zulcss) wrote :

Once we determine what the fix is then yes it should be possible. Can you please attach your mysql confgiuration files?

Thanks
chuck

Changed in mysql-dfsg-5.0 (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Beach Ball (surfin10) wrote :

Chuck, I have attached the my.cnf file.

The system is running Ubuntu 8.04 Server, 64-bit, with all updates. It has 12GB of RAM.

Thank you.

Revision history for this message
Chuck Short (zulcss) wrote :

How big is the file you are trying to import btw?

Regards
chuck

Changed in mysql-dfsg-5.0 (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Beach Ball (surfin10) wrote :

Chuck Short,

Sorry this took so long to respond. I had to find the original file I was trying to import. It is 7.82 GB.

Revision history for this message
Chuck Short (zulcss) wrote :

Can you try this using mysql 5.1.

thanks
chuck

affects: mysql-dfsg-5.0 (Ubuntu) → mysql-dfsg-5.1 (Ubuntu)
Changed in mysql-dfsg-5.1 (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Beach Ball (surfin10) wrote :

Chuck Short,

I was able to load the same data into MySQL 5.1, running on Ubuntu 10.04 64-bit server, today without encountering the same problem.

Thanks.

Revision history for this message
Chuck Short (zulcss) wrote :

Closing bug report then.

Changed in mysql-dfsg-5.1 (Ubuntu):
status: Triaged → Confirmed
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.