473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Got a packet bigger than 'max_allowed_packet' error

101 100+
Okay...

I got this error, so I thought, fine, I'll change the max_allowed_packet variable.

So, I went to the documentation, and found this
http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html

But, the command it gives you for changing the packet size variable doesn't work.

This command:
Expand|Select|Wrap|Line Numbers
  1. mysqld --max_allowed_packet=32M
gives me the "command not found" error.

So, I figured I would find the file (/etc/init.d) and go like this:

Expand|Select|Wrap|Line Numbers
  1. ./mysqld --max_allowed_packet=32M
But that just gives me the "usage ./mysqld {star|stop|status|etc}" error.

But if I do this:
Expand|Select|Wrap|Line Numbers
  1. ./mysqld start --max_allowed_packet=32M
It won't take in the argument for max_allowed_packet, because I can spell the variable wrong and it doesn't give me an error.

This is getting pretty frustrating. Anyone know how I can change the server variable "max_allowed_packet"?
Sep 18 '08 #1
2 6668
zensunni
101 100+
I found an alternative.

1. Edit the file "/etc/my.cnf":
Under "[mysqld]", enter "max_allowed_packet=100000000M"

2. Then use command:
mysql -p'<password>' --max_allowed_packet=10000000M <database_name> < "/home/<user>/Desktop/<upload_file>.sql"
Sep 18 '08 #2
Atli
5,058 Expert 4TB
Yea. But after changing it in the my.cnf file and restarting the MySQL server, it shouldn't be necessary to add the parameter to the mysql command.

Glad you found a solution tho.
Thanks for sharing it.
Sep 18 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: David Sworder | last post by:
Hi, I'm writing an application in which a client (C#/WinForms) and server (C#/service) interact with one another. The client establishes a "session" with the server but for scalability reasons...
5
by: pmm | last post by:
hi I am a beginner in network programming I am trying out a UDP packet transfer between a windows machine and a linux I created a structure on both sides (ie on linux and on windows) and I sent...
3
by: Dodong | last post by:
I am already using MySql 5 and is currently working on a code to save pictures to a table. How can I modify the max_allowed_packet system variable?
4
by: Geethu03 | last post by:
Hi My Question is how can i store the database from one System to another System? I have a database with large no of data's.I want to store these data to another system with all data. I...
3
by: nexus024 | last post by:
I am trying to write a program that will continuously sniff eth0 for a specific UDP packet thats being sent to a specific destination IP, alter the data of the packet, and finally transmit it to the...
1
by: sangith | last post by:
Hi, I tried the packet capture module program. I did a file transfer using ftp from this host to another server. But when I ran the program, it was just hanging off and it did not print the...
1
pradeepjain
by: pradeepjain | last post by:
hai guys i am facing a small problem... i am trying to upload a file of size 4mb .....but i am getting this error "Got a packet bigger than 'max_allowed_packet' bytes" how to solve this ...
0
ddtpmyra
by: ddtpmyra | last post by:
Is there a way where you can update or set the max_allowed_packet inside myslq browser? I tried to change the my.cnf file but still does not take any effect on my database. Please help, MD
5
by: xoise | last post by:
Warning: mysql_connect() : Lost connection to MySQL server at 'reading initial communication packet', system error: 113 in /webs/sites/monetized.com/includes/mysql_connect.inc.php on line 2 Lost...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.