Confluence using MySQL Plugin Export/Import Problem

So I'm having a problem: I exported my DB save for the PLUGINDATA table and imported it just fine. I've been having a problem reimporting the plugins themselves..

[root@randomserver zipp]# mysql --max_allowed_packet=1024M confluence < confluence.plugindata.sql

ERROR 1153 (08S01) at line 44: Got a packet bigger than 'max_allowed_packet' bytes

Any suggestions? The dump file itself is only 48M

-rw-r--r-- 1 zipp users 48M Aug 3 14:37 confluence.plugindata.sql

1 answer

Hi Thomas,

Have you set max_allowed_packet on MySQL server side too? When you set --max_allowed_packet=1024M parameter that is for MySQL client only. To change it on server change the my.cnf or my.ini file under the mysqld section and set max_allowed_packet=100M

You can also run these commands in a mysql console connected to that same server:

set global net_buffer_length=1000000;

set global max_allowed_packet=1000000000;

I opened up two consoles and had already tried those set commands and ended up getting the same error. Only thing I haven't done yet is trying to chunk the file? It's a 48M file so I see no reason it can't buffer this thing.

Got it. Had to resize max_allowed_packet in my.cnf and restart mysqld.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

995 views 23 13
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you