we created a script that converts CSV Data to SQL. Today i wanted to import a sql file created from csv via the shell. As result i became the error message
ERROR 2006 (HY000) at line 6: MySQL server has gone away
The filesize is arround 15 Megabyte, so i was wondering because i imported Databases with more than 11 Gigabyte before without any trouble. So we startet to check the SQL File again and again and couldnt find any issues with it. So i thought maybe there is a limitation for the lengh of the query (currently we use max_allowed_packet = 160M).160 MB should be enough. I began to split the SQL file to half and then to a quarter, suddenly it works.
So i hope somebody could tell me what is wrong with our query and how to avoid this crash, it seems there is something resulting in a kind of buffer overflow.
This is a short example of the sql file http://pastebin.com/ZViw69SM The full sql got 175416 lines.