I want to insert longtext columns into a table,using python.
I have a columns from sql
which is too long to be inserted. When I try, it doesn't throw an exception, and my max_allowed_packet
is longer than the longtext column.
Example code: os.system(mysqlquery+"insert into xxx(sql,,) values(,,,)" % (sql,,))
When I shorten the sql, it can be inserted:
- the length of sql: 162,072
- max_packet_size:
max_allowed_packet
: 419,4304slave_max_allowed_packet
: 1,073,741,824