Could someone please give some insight on the following please?
Screnario: would like to restore a medium database (846MB), what has a lot of BLOB attachments.
During restore, i get the error message that one of this attachments are larger then max_allowed_packet.
The attachment is 10124159 bytes~10Mb.
(i use
Expand|Select|Wrap|Line Numbers
- mysql -u root -p -v --max_allowed_packet=1024M -h mydbserver db1 < db1_bak.sql
My my.cnf is set up with
max_allowed_packet=16M
i tried a couple of things like putting
--max_allowed_packet=1024M into the restore command, set it by set global in mysql prompt, but nothing seems to help.
Restarted the server several times..
One thing i noticed, that after setting the global in mysql prompt the show variables still shows the 16M size.. but it's accepting the set... I don't get it.. i'm in with DBA root, useing the local root user & even sudo...
Can someone help me please?
I'm on MySQL 5.1.37 on a virtualized XUbuntu 9.10 (2 cores AMD 2GB dedicated RAM for the VM, full 16GB on the VM Host)
Thank you, regards.
Daniel