Jump to content

Phpmyadmin Got A Packet Bigger Than 'max_Allowed_Packet' Bytes


MSUK1

Recommended Posts

Hello

 

I am trying to upload an SQL file to my new VPS. However i keep getting this error:

 

#1153 - Got a packet bigger than 'max_allowed_packet' bytes

 

I've contacted my host and they've said phps upload limit is 2M and the packetsize is too small

 

Ive checked my php ini file, upload size is 128M and the packet max is 16M

 

What am i doing wrong?

 

The filesize is just over 2MB

Link to comment
Share on other sites

That's a MySQL error about a MySQL setting. Not related to PHP. Do a query

SHOW VARIABLES LIKE 'max_allowed_packet'

to see what it's set at (measured in bytes).

 

Assuming that won't change and/or is set to something reasonable (fair assumptions) work around the limit by splitting your SQL file into smaller pieces and running them individually.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.