Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old January 29th, 2007, 02:23 AM
Newbie
 
Join Date: Oct 2006
Posts: 14
Default Modify max allowed packet

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?
Reply
  #2  
Old January 29th, 2007, 02:19 PM
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
Default

It's all in the standard documentation of MySQL:

Quote:
Originally Posted by MySQL doc
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=32M
That sets the packet size to 32MB.

The server's default max_allowed_packet value is 1MB. You can increase this if the server needs to handle big queries (for example, if you are working with big BLOB columns). For example, to set the variable to 16MB, start the server like this:

shell> mysqld --max_allowed_packet=16M
You can also use an option file to set max_allowed_packet. For example, to set the size for the server to 16MB, add the following lines in an option file:

[mysqld]
max_allowed_packet=16M
Ronald :cool:
Reply
  #3  
Old January 30th, 2007, 01:13 AM
Newbie
 
Join Date: Oct 2006
Posts: 14
Default

Thanks Ronald.
Reply
  #4  
Old August 28th, 2008, 06:11 PM
Member
 
Join Date: Jun 2008
Posts: 97
Default

Ronald,

How can you set-up the packet size on a Novell Box?

thanks,
MM
Reply
Reply

Bookmarks

Thread Tools

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

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

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles