Hello,
I have a php application where we are uploading images in mysql. If images are more than 1MB script is failing...
TableImage::store failed - MySQL server has gone away SQL=INSERT INTO `images` ( `adid`,`image`,`published`,`ordering` ) VALUES ( '170','test_a8632','1','' )
This means the mySQL died while adding image row.
INSERT into images (adid,image,published,ordering) values ('174','This_i8690','1','1')
but the mysql seems to be overloaded and dies.
Please help me figure this issue? we have tried changing the php.ini but still no help.
Following values were changed in php.ini file.
post_max_size, upload_max_filesize
These to settings need to be changed
If the connection is slower max_execution_time = 180, memory_limit, post_max_size, upload_max_filesize
by: gr8gonzoPosted on 2009-11-05 at 06:51:30ID: 25750015
Usually it's because there's a max size of the queries you can send to MySQL - are you trying to send all 1MB of queries to MySQL at the same time? Can you post the code you're using?