Fix the MySQL docs for max_allowed_packet.

The old docs were not only styled wrong, but were also only showing how
to set the per-session max allowed packet size. This updates the docs to
show where to set this permanently, and to also discuss setting it just
for the session (switching the example to using mysqldump).