MySQL Packet Error on BLOB fields
Posted: Mon Oct 29, 2007 11:16 am
I followed the instructions in the "How to handle file uploads" doc, and I created LONGBLOB fields for my files, mainly PDF and TIFF in this case. As soon as I tried to upload a "large" file (only 1 MB), there was a bunch of binary data dumped to the client browser, and the following error appeared in the web server logs:
According to the MySQL manual:
http://dev.mysql.com/doc/refman/5.0/en/ ... large.html
Could this value be set somewhere in Dataface, such as conf.ini or index.php, rather than changing it for the whole MySQL server? Either way, this information should probably be added to the "How to handle file uploads" doc for future reference....
Thanks,
Alan
PHP Fatal error: Failed to update due to sql error: Got a packet bigger than 'max_allowed_packet' bytesOn line 577 of file /var/www/html/dataface-0.7.1/Dataface/IO.php in function print
According to the MySQL manual:
The server's default max_allowed_packet value is 1MB. You can increase this if the server needs to handle big queries (for example, if you are working with big BLOB columns).
http://dev.mysql.com/doc/refman/5.0/en/ ... large.html
Could this value be set somewhere in Dataface, such as conf.ini or index.php, rather than changing it for the whole MySQL server? Either way, this information should probably be added to the "How to handle file uploads" doc for future reference....
Thanks,
Alan