php - MySQL Server has gone away (not timeout) -
i've hunted thoroughly on , google try resolve have not been able to. i'm executing insert @ part of code, , php instantly fails insert, reporting "mysql server has gone away". despite notice, mysql server responds normal other operations. other inserts working fine, , if run exact same query manually, runs without problem , inserts data. mysql version 5.5.30 , php version 5.4.6. insert query follows:
insert orders set userid = '80' , billing_addr = 'test_addr' , shipping_addr = 'test_addr' , ship_instructions = '' , shipping = 0 , user_comments = '' , tax = 0 , total = 0 , admin_comments = '' , source_id = 13 , billing_profile_id = 32 , recurring = 'no' , total_raw_product_cost = 0 , total_network_payout = 0 , shipping_code = ''
i've restarted apache, restarted mysql, checked table not crashed. there no info sent mysql log when query fails.
the php basic query completeness' sake, i've included here.
if( db_query($sql) ) { // happy stuff because worked } else { die("error: unable save order data <!-- (" . $db_error . ") [" . $sql . "]-->"); }
edit: have db server works fine same setup. i've tried matching my.cnf
files , restarting, no effect. difference can see between working , non-working db servers working 1 version 5.0.77 instead of 5.5.30.
Comments
Post a Comment