Running SQL gives your Error:
ERROR 2027 (HY000) at line 1: Malformed packet
Most likely is that your MySQL client is too old and need upgrading.
HOWTO check vesion of mysql client:
mysql -V
mysql Ver 14.14 Distrib 5.5.32, for Linux (x86_64) using readline 5.1
Try running the SQL from another unix box - it might work there...
Check mysql client version on that box too to see if different...
mysql -v
mysql Ver 14.14 Distrib 5.7.25-28, for Linux (x86_64) using 6.0
Yes it was different
First host gave ERROR 2027, second host did not.