Strange error: Got a packet bigger than 'max_allowed_packet' bytes

This is a discussion on Strange error: Got a packet bigger than 'max_allowed_packet' bytes within the MySQL Database forums, part of the Database Forums category; Hi, I'm using MySQL 5.0. I'm trying to import a file exported from phpMyAdmin. The error I'...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-13-2007
laredotornado@zipmail.com
 
Posts: n/a
Default Strange error: Got a packet bigger than 'max_allowed_packet' bytes

Hi,

I'm using MySQL 5.0. I'm trying to import a file exported from
phpMyAdmin. The error I'm getting is:

ERROR 1153 (08S01) at line 418: Got a packet bigger than
'max_allowed_packet' bytes

Line 418 is an INSERT statement. It is very long so I won't post it
here. My inclination is that the length of the line is causing the
error. I'm turning to you experts, however, to see if there's some
setting I can adjust somewhere that will allow me to import this file
or if I must break up the file.

Thanks for any advice, - Dave

Reply With Quote
  #2 (permalink)  
Old 05-14-2007
subtenante
 
Posts: n/a
Default Re: Strange error: Got a packet bigger than 'max_allowed_packet' bytes

On 13 May 2007 14:23:06 -0700, "laredotornado@zipmail.com"
<laredotornado@zipmail.com> wrote:

In your MySQL installation folder, you may have a my.ini file.
Add something like somewhere inside off it :

max_allowed_packet=16M

and restart your server.
Reply With Quote
  #3 (permalink)  
Old 05-14-2007
laredotornado@zipmail.com
 
Posts: n/a
Default Re: Strange error: Got a packet bigger than 'max_allowed_packet' bytes

On May 14, 2:32 am, subtenante <zzsubtenant...@gmail.com> wrote:
> On 13 May 2007 14:23:06 -0700, "laredotorn...@zipmail.com"
>
> <laredotorn...@zipmail.com> wrote:
>
> In your MySQL installation folder, you may have a my.ini file.
> Add something like somewhere inside off it :
>
> max_allowed_packet=16M
>
> and restart your server.


I added this to /etc/my.cnf in two places (see below) but to no
avail. I still get the error.

[mysqld]
datadir=/var/lib/mysql
socket=/tmp/mysql5.sock
# Default to using old password format for compatibility with mysql
3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

[mysql.server]
user=mysql
basedir=/var/lib
max_allowed_packet=32M

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[client]
socket=/tmp/mysql5.sock
max_allowed_packet=32M

- Dave

Reply With Quote
  #4 (permalink)  
Old 05-14-2007
subtenante
 
Posts: n/a
Default Re: Strange error: Got a packet bigger than 'max_allowed_packet' bytes

On 14 May 2007 07:25:58 -0700, "laredotornado@zipmail.com"
<laredotornado@zipmail.com> wrote:


>I added this to /etc/my.cnf in two places (see below) but to no
>avail. I still get the error.


Do you know the size of the file exported by MySQL ? You're sure it is
under 32MB ?
You need to restart the server for the changes to take effect, did you
do it ?

Apart from these, if the size is less than 32MB, and you restarted,
and it still doesn't work, I really don't know what to tell you.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:12 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0