When you get an error message you don't understand, the first thing to do is paste it into Google and see what it says.
Google: MySQL server has gone away[
^]
This lists a number of reasons, which should help. Without your coffee, we can't do any more than that!
In future, please try Google first - it's faster than asking here!