python - mod_python/MySQL error on INSERT with a lot of data: "OperationalError: (2006, 'MySQL server has gone away')" -


when doing insert lot of data, ie:

insert table (mediumtext_field) values ('...lots of text here: 2mb worth...') 

mysql returns

"operationalerror: (2006, 'mysql server has gone away')"

this happening within minute of starting script, not timeout issue. also, mediumtext_field should able hold ~16mb of data, shouldn't problem.

any ideas causing error or how work around it?

some relevant libraries being used: mod_python 3.3.1, mysql 5.0.51 (on windows xp sp3, via xampp, details below)

apachefriends xampp (basic package) version 1.6.5

  • apache 2.2.6
  • mysql 5.0.51
  • phpmyadmin 2.11.3

check max_packet setting in my.cnf file. determines largest amount of data can send mysql server in single statement. exceeding values results in error.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -