+ Reply to Thread
Results 1 to 3 of 3

Thread: Got a packet bigger than 'max_allowed_packet' bytes

  1. #1
    gerwim is offline x10Hosting Member gerwim is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    6

    Got a packet bigger than 'max_allowed_packet' bytes

    Hi there,

    So I'm trying to upload an image in my SQL database, although I get this error. 30KB image works, but a 500KB one fails.
    Got a packet bigger than 'max_allowed_packet' bytes

    This means that you are not able to upload files bigger than X size, or import databases greater than X size.

    Can this 'max_allowed_packet' be increased? I'm on the Starka server.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Got a packet bigger than 'max_allowed_packet' bytes

    System settings such as max_allowed_packet that set limits are very unlikely to be changed (unless during a major server upgrade) as increasing them can let just a few users bring the shared servers to a crawl.

    Rather than storing images in a database, you can store them in the filesystem and store paths in the DB. This has other benefits beyond getting around MySQL's maximum packet size.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    gerwim is offline x10Hosting Member gerwim is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    6

    Re: Got a packet bigger than 'max_allowed_packet' bytes

    Hi misson,

    Thanks for your reply. As I hadn't any hopes up that it would be increased, I have already done exactly as you said.

    Thanks anyway.


    Gerwim

+ Reply to Thread

Similar Threads

  1. max_allowed_packet
    By tomsm in forum Free Hosting
    Replies: 4
    Last Post: 10-02-2009, 09:47 AM
  2. max_allowed_packet
    By mains3rv3r in forum Free Hosting
    Replies: 3
    Last Post: 03-07-2008, 03:13 AM
  3. max_allowed_packet
    By hubbly in forum Free Hosting
    Replies: 0
    Last Post: 03-06-2008, 04:05 PM
  4. Bigger Ads Please!
    By amr1991 in forum Free Hosting
    Replies: 10
    Last Post: 10-02-2006, 09:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers