ryuuseigun Posted May 1, 2006 Share Posted May 1, 2006 Hi, I was wondering whether there was a way to change the max_packet_size on a shared server? I'm running Apache 1.3.31 (Unix), PHP 4.3.11 and MySQL 4.0.16, but cannot access the my.cnf file. If any more details are needed, please let me know; I'm very much a newbie with this. Any help will be much appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/8799-changing-max_allowed_packet-on-a-shared-server/ Share on other sites More sharing options...
fenway Posted May 1, 2006 Share Posted May 1, 2006 I don't think so -- but in general, you shouldn't need to change this size, which is usually set rather conservatively. If this has to do with storing binary data, then there are other, more desirable workarounds. Please clarify. Quote Link to comment https://forums.phpfreaks.com/topic/8799-changing-max_allowed_packet-on-a-shared-server/#findComment-32368 Share on other sites More sharing options...
ryuuseigun Posted May 1, 2006 Author Share Posted May 1, 2006 [!--quoteo(post=370300:date=May 2 2006, 02:07 AM:name=fenway)--][div class=\'quotetop\']QUOTE(fenway @ May 2 2006, 02:07 AM) [snapback]370300[/snapback][/div][div class=\'quotemain\'][!--quotec--]I don't think so -- but in general, you shouldn't need to change this size, which is usually set rather conservatively. If this has to do with storing binary data, then there are other, more desirable workarounds. Please clarify.[/quote]Yes, I'm trying to store binary data in the database, namely files whose individual file sizes are greater than the max_allowed_packet. Currently, storing smaller files has been no problem at all. It seemed like there should be better ways to get around the problem, but I had no idea where to begin looking, so the tutorials/forum threads I did find were all related to increasing max_allowed_packet. Quote Link to comment https://forums.phpfreaks.com/topic/8799-changing-max_allowed_packet-on-a-shared-server/#findComment-32374 Share on other sites More sharing options...
fenway Posted May 2, 2006 Share Posted May 2, 2006 I can't seem to locate the tutorial, but basically, you simply break up your binary data into reasonably-sized chunks, and then put it back together on the way out. Quote Link to comment https://forums.phpfreaks.com/topic/8799-changing-max_allowed_packet-on-a-shared-server/#findComment-32696 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.