ensure statement is not bigger than statement_size
Bug #1250269 reported by
Max Bubenick
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Data Dumper |
Fix Released
|
Low
|
Max Bubenick |
Bug Description
mydumper has this:
/* INSERT statement is closed once over limit */
if (statement->len > statement_size) {
g_string_
If max_allowed_packet is 1MB (1048576) and the last insert is over 48,576 bytes, 1048576-1000000, then trying to load this data will result in max_packet_size errors:
ERROR 1153 (08S01) at line 4064: Got a packet bigger than 'max_allowed_
Instead what it should do is not start to append the insert until it knows the current insert will not exceed max_allowed_packet.
Changed in mydumper: | |
status: | Fix Committed → Fix Released |
summary: |
- ensure satetement is not bigger than statement_size + ensure statement is not bigger than statement_size |
To post a comment you must log in.
hi,
I'm using the latest version of mydumper i-e 0.6.1 and still getting below given for some of the dbs. could you please suggest whats needed to change.
+ ./mydumper- 0.6.1/mydumper --database=ps_db --host= --user=root --password=dbpasswd --outputdir= /db_backup_ mysql/dbdump. .Tue --rows=500000 --compress --build-empty-files --threads=4 --compress-protocol
** (mydumper:14274): WARNING **: Row bigger than statement_size for pms3_bwestates. pms_attachments
please suggest whats' wrong here.
Regards,
Nasir