From: Kishore Jalleda Date: May 18 2006 8:17pm Subject: Re: Got a packet bigger than 'max_allowed_packet' bytes List-Archive: http://lists.mysql.com/mysql/198070 Message-Id: <78aaf6710605181317w7157f211ue4348b258004f355@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable On 5/18/06, Kishore Jalleda wrote: > On 5/18/06, Dan Trainor wrote: > > Hi - > > > > I'm trying to import some data into a MySQL database, which was dumped > > from mysqldump. Just looking at the .sql file generated, there's only > > about 7000 lines, on an 800M dump. I guess this tells me I have some > > extremely long lines, which would be happy to take up more than > > 'max_allowed_packet' bytes, which is set to 16M. > > > > The specific error I get is: > > > > ERROR 1153 (08S01) at line 3132: Got a packet bigger than > > 'max_allowed_packet' bytes > > > > Using: > > > > mysql -uroot -p database < /tmp/800MSQLFile.sql > > > > under MySQL 5.0.21. > > > > I don't have much experience importing data in this manner, so maybe I'= m > > missing something here. If anyone wouldn't mind sharing some tips on > > how to do this, I would grealy appreciate it. > > > > Should I increase max_allowed_packet even further? Is there a way to > > make this value "adaptive", as to avoid error? > > > > Thanks! > > -dant > > > > -- > > MySQL General Mailing List > > For list archives: http://lists.mysql.com/mysql > > To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dkjalleda@gmail.= com > > > > > > Check this > http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html > > Kishore Jalleda > Just to add a little note, pay special attention to the lines which say -->Both the client and the server have their own max_allowed_packet variable, so if you want to handle big packets, you must increase this variable both in the client and in the server. -->If you are using the mysql client program, its default max_allowed_packet variable is 16MB. --To set a larger value, start mysql like this: -->shell> mysql --max_allowed_packet=3D32M -->That sets the packet size to 32MB. So thats the catch here... Kishore Jalleda http://kjalleda.googlepages.com/mysqlprojects