I am trying to import a table on an Amazon RDS server using mysqldump. During restoration, i get the following error message:
ERROR 1153 (08S01) at line 925: Got a packet bigger than 'max_allowed_packet' bytes
I then add --max_allowed_packet=128M
to the restoration command, and now get the following error:
ERROR 2006 (HY000) at line 925: MySQL server has gone away
Here is the mysqldump restoration command:
mysql --max_allowed_packet=128M -uroot -p -h db-name.123456789012.us-east-1.rds.amazonaws.com dbname < /srv/tmp/dbname.sql
And when i try to set the max_allowed_packet and net_buffer_length globally during the current session without having to restart the RDB instance, i get the following error:
ERROR 1227 (42000) at line 1: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
Attempt to add 'SUPER' privilege to the user also fails.