The essence of the question is, has mysql database it is compressed using zlib data. When unpacking the machine where they are compressed all ok. On another machine
zlib.error: Error -3 while decompressing data: incorrect header check
compressed:
fmt = '%df' % (num_of_p,)
dist = buffer(zlib.compress( struct.pack(fmt, *data), 9 ))
unpacking:
dist = struct.unpack ( '% df'% (num_of_p - 1,), zlib.decompress (data))
On the machine where the packed python 2.7.3 On the machine where the unpacked python 2.7.13