I was restoring a backup that had been created using the instructions here: https://secure.phabricator.com/book/phabricator/article/configuring_backups/ My backup file was 84M in size.
When I ran
cat mybackup.sql | mysql -u root
I got the following error:
ERROR 2006 (HY000) at line 586: MySQL server has gone away
It turns out that increasing max_allowed_packet to 128M fixed this error. (It was 1M by default on my Arch system.) If this is an expected problem, can we make a reference to it in the documentation?