Im using Amazon Web services and I\'ve setup EC2 and RDS and installed apache, php, mysql, phpmyadmin.
I can import small sql files (I also setup worpdress and impor
According to the MySQL docs, this often has to do with timeouts. While it is hard to diagnose this, I could think of a possible workaround: fire up an EC2 instance in the same region as your RDS server (or use an existing one that you already have - a micro one or a small one will do), upload your big SQL dump there for example using SFTP, install the MySQL client libraries and upload your file from there. This will ensure a faster import speed between your mysql client and your RDS instance.
I had the same problem:
Once your instance has rebooted, you should be able to do larger sql imports.
Once you've completed your import, switch your instance parameter group back to the default parameter group and reboot it again.
Hope this helps.
The accepted answer didn't work for me, but changing the max_allowed_packet to something large (i.e. 32000000 =~ 32MB) and rebooting did.