If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > max_allowed_packet size value not changed after changing in my.cnf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-30-11, 06:30
andrewtr andrewtr is offline
Registered User
 
Join Date: Dec 2010
Posts: 6
max_allowed_packet size value not changed after changing in my.cnf

Hi,

I need to increase the max_allowed_packet size value from 8M to 16M, so I have changed in my.cnf file and restarted the mysql service. Whereas when I checked the variables, it is still showing 8M.

When I used the following command "/etc/init.d/mysql restart --max_allowed_packet=16M" the max_allowed_packet getting changed to 16M but the max_allowed_packet is becoming 8M when I restarted the mysql services normally. How can I set the max_allowed_packet size permanently.
Reply With Quote
  #2 (permalink)  
Old 09-30-11, 07:42
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
just wondering if you need to change the configuration after the service has stopped?

some *nix programs write back the current configuration on shutting down and MySQL may have a similar behaviour.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 09-30-11, 10:25
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
I am not sure whether you can add in parameters after this command /etc/init.d/mysql other than start/stop/restart etc. If you want to change these parameters then change them in the /etc/my.cnf file.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #4 (permalink)  
Old 10-03-11, 03:01
andrewtr andrewtr is offline
Registered User
 
Join Date: Dec 2010
Posts: 6
I have changed in /etc/my.cnf file after stopping the mysql service, but it is not getting reflected on starting the mysql service.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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