MySQL PHP not storing full file to BLOB -


i have set new lamp server running centos 6, apache 2.2.15, php 5.5.25 , mysql 5.5.43. installed php , mysql webtatic , using mysqlnd extension.

i have transferred on code , databases older lamp set up. of site works fine , has transferred well.

however storage of files in database has ceased function properly. mean files no longer being stored fully, last 20% lost. have spent quite while trying work out cause might , confident happening @ "php saving mysql" stage.

in other words, file makes server full size, time hits db longblob has lost of it's size. have download out of db check it's size issue delivery of file.

i using phpmyadmin moment , , both php code have same issue. no matter whether use uploader or of phpmyadmin (via insert/edit choose file) longblob filesize shown in phpmyadmin ends being smaller original file.

then when download either via file delivery or through phpmyadmins, file delivered @ correct dimensions bottom 20% gray/white/colour.

i'm totally stumped! i've tried messing packet/memory/upload limits, collation formats , db engines. can't store/deliver whole file.

anyone have ideas?

let me know if need more info help.

thanks


edit 1: i've narrowed down being problem php's delivery of files client's browser. whatever reason when file content comes database field not delivered complete. mentioned, happens both code , phpmyadmin. ideas?


edit 2: i've done further test , can write file database server's filesystem using php. file complete! can mean way php sending data database problem. what's changed between old , new server?

you see issue if data transferring (into / out-of mysql) larger max allowable packet size. see https://dev.mysql.com/doc/refman/5.5/en/packet-too-large.html

try increasing max packet size in mysql config:

[mysqld] max_allowed_packet=16m 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -