Mysql Error Number 1153
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or mysql show max_allowed_packet posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss
1153 Got A Packet Bigger Than Max_allowed_packet Bytes PhpmyadminJoin the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only #1153 - got a packet bigger than 'max_allowed_packet' bytes mamp takes a minute: Sign up MySQL Error 1153 - Got a packet bigger than 'max_allowed_packet' bytes up vote 319 down vote favorite 106 I'm importing a MySQL dump and getting the following error. $ mysql foo < foo.sql ERROR 1153
Mamp Got A Packet Bigger Than 'max_allowed_packet' Bytes(08S01) at line 96: Got a packet bigger than 'max_allowed_packet' bytes Apparently there are attachments in the database, which makes for very large inserts. This is on my local machine, a Mac with MySQL 5 installed from the MySQL package. Where do I change max_allowed_packet to be able to import the dump? Is there anything else I should set? Just running mysql --max_allowed_packet=32M … resulted in the same error. mysql share|improve this question edited Oct 22 '12 at 1:05 Dan Rosenstark mysql workbench max_allowed_packet 34.5k42195329 asked Sep 18 '08 at 14:38 kch 37.2k38111143 4 This blog is worth reading for 'max_allowed_packet' error: webyog.com/blog/2009/08/10/… –Ashwin A Aug 21 '12 at 9:24 possible duplicate of How to change max_allowed_packet size –Muleskinner Jan 17 '14 at 14:19 add a comment| 13 Answers 13 active oldest votes up vote 384 down vote accepted You probably have to change it for both the client (you are running to do the import) AND the daemon mysqld that is running and accepting the import. For the client, you can specify it on the command line: mysql --max_allowed_packet=100M -u root -p database < dump.sql Also, change the my.cnf or my.ini file under the mysqld section and set: max_allowed_packet=100M or you could run these commands in a MySQL console connected to that same server: set global net_buffer_length=1000000; set global max_allowed_packet=1000000000; (Use a very large value for the packet size.) share|improve this answer edited Apr 29 '15 at 6:54 VSB 1,9352143 answered Sep 19 '08 at 18:10 Michael Pryor 13.7k176086 8 guess corporate support still beats this community thing :P –kch Sep 19 '08 at 20:23 I have a server with 16 GB of RAM, is it a bad idea to set max_allowed_packet to 100 MB? –Webnet Nov 8 '10 at 14:53 6 FYI - it helped me to solve a DIFFERENT error - "#2006 server has gone away" –itsho Dec 13 '11 at 16:05 13
On this page Error: MySQL - ERROR
Got A Packet Bigger Than 'max_allowed_packet' Bytes Wordpress1153 (08S01) at line 138: Got a packet bigger
Mamp Max_allowed_packetthan 'max_allowed_packet' bytes Solution Error: MySQL - ERROR 1153 (08S01) at line 138: got a packet bigger than 'max_allowed_packet' bytes rds Got a packet bigger than 'max_allowed_packet' bytes You see the following error while executing a MySQL query: ERROR 1153 (08S01) at line http://stackoverflow.com/questions/93128/mysql-error-1153-got-a-packet-bigger-than-max-allowed-packet-bytes 138: Got a packet bigger than 'max_allowed_packet' bytes Solution Open your my.cnf file - on Debian/Ubuntu, it's /etc/mysql/my.cnf, on Fedora/RedHat/CentOS, it's /etc/my.cnf - and search for the max_allowed_packet line. I suggest you play around with its value a bit - double or quadruple https://www.howtoforge.com/mysql-got-a-package-bigger-than-max_allowed_packet-bytes its value, restart MySQL - on Debian/Ubuntu, the command is /etc/init.d/mysql restart ... and on Fedora/RedHat/CentOS, the command is /etc/init.d/mysqld restart - and see if the error goes away. If not, increase the max_allowed_packet value again. view as pdf | print Share this page: Tweet Follow 0 Comment(s) Add comment Name * Email * Tutorials MySQL - Got a packet bigger than 'max_allowed_packet' bytes > Log in with Facebook Log in with Twitter Log in with Google Your name or email address: Do you already have an account? No, create an account now. Yes, my password is: Forgot your password? Stay logged in Sign up now! Tutorial Info Author: falko Tags: errors Share This Page Tweet Xenforo skin by Xenfocus Contact Help Imprint Tutorials Top RSS-Feed Terms Howtoforge © projektfarm GmbH.
Community Podcasts MySQL.com Downloads Documentation Section Menu: MySQL Forums :: Database Administration & Monitoring :: ERROR 1153: Got a packet bigger than 'max_allowed_packet' bytes New Topic Advanced Search ERROR 1153: Got a packet bigger http://forums.mysql.com/read.php?35,75794,75794 than 'max_allowed_packet' bytes Posted by: Miroslav Koula () Date: March 14, 2006 07:18AM Hi, I need get inside MySQL a mysqldump file which is about 3.8GB large. I am trying: mysql -u root -p < /data/backup/dump/mysqldump_utf.txt It starts make some small databases and die saying: ERROR 1153 (08S01) at line 1752: Got a packet bigger than 'max_allowed_packet' bytes I try to experiment under the documentation like: mysql -u got a root -p -- --max_allowed_packet=32M < /data/backup/dump/mysqldump_utf.txt mysql -u root -p -- --max_allowed_packet=500M < /data/backup/dump/mysqldump_utf.txt but always the same... Have you any suggestion what to do? Thanks everybody mIREK Navigate:Previous Message•Next Message Options:Reply•Quote Subject Written By Posted ERROR 1153: Got a packet bigger than 'max_allowed_packet' bytes Miroslav Koula 03/14/2006 07:18AM Re: ERROR 1153: Got a packet bigger than 'max_allowed_packet' bytes Denis Zhurba 04/03/2006 02:32AM Re: ERROR 1153: Got got a packet a packet bigger than 'max_allowed_packet' bytes Dan Tasse 07/17/2007 02:01PM Re: ERROR 1153: Got a packet bigger than 'max_allowed_packet' bytes Vic Agnews 11/13/2007 05:08PM Re: ERROR 1153: Got a packet bigger than 'max_allowed_packet' bytes Bogdan Nicolau 03/17/2009 10:02AM Re: ERROR 1153: Got a packet bigger than 'max_allowed_packet' bytes Kathy Walker 03/25/2009 08:32AM Re: ERROR 1153: Got a packet bigger than 'max_allowed_packet' bytes David Sanchez 05/07/2009 02:38PM Re: ERROR 1153: Got a packet bigger than 'max_allowed_packet' bytes Roberto Novakosky 05/20/2009 12:46PM Sorry, you can't reply to this topic. It has been closed. powered by phorum Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party. Contact Sales USA: +1-866-221-0634 Canada: +1-866-221-0634 Germany: +49 89 143 01280 France: +33 1 57 60 83 57 Italy: +39 02 249 59 120 UK: +44 207 553 8447 Japan: 0120-065556 China: 10800-811-0823 India: 0008001005870 More Countries» Contact Us Online» Products MySQL Enterprise Edition MySQL Standard Edition MySQL Classic Edition MySQL Cluster CGE MySQL Embedded (OEM/ISV) Services Training Certification Consulting Support Downloads MySQL Community Server MySQL Cluster MySQL Fabric MySQL Utilities MySQL