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 imported a sql db for that -fine) but when I try to import a 200mg sql file using putty I get
ERROR 2006 (HY000) at line 186: MySQL server has gone away'
After doing some research it seemed increasing max_allowed_packet, wait_timeout and net_read_timeout in DB Parameter Groups would help but it didnt (I did reboot after making changes, I also set those to their maximum allowed values using RightScale dashboard).
Is there anything else I should be aware of that might be causing this?
I also tried bigdump.php with no luck.
I presume loads of people upload large mysql databases using aws so this is kinda driving me crazy.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With