I'm using file upload fields, and submitting the MIME-encoded version of the file contents to a MySQL database. If I try to upload a file larger than about 500kB, the DB insertion fails and I get this in the Apache error_log:
DBD::mysql::st execute failed: MySQL server has gone away at /usr/local/apache-dev/ultraform-lib/UltraForm2.pm line 496, <fh00003E%3A\Software\Network\GETRIGHT.ZIP> chunk 3772. When I connect to the server and use \s, the uptime and connection ID show no indication that the MySQL server crashed or otherwise "went away". What steps do I take to solve this?