Forums

Resolved
0 votes
I dont know if this is a bug or by design, but even though max_allowed_packet is configured to 32MB on my.cnf file, when you check the setting on the database its only set to 10MB

I was able to setup a larger amount by running a query on phpmyadmin, but it only lasted until I restarted the process.

Query used to configure 128MB :

set global max_allowed_packet=1024 * 1024 * 128


Query to check current configuration :

SHOW variables like 'max_allowed_packet'



Anyone has any idea on how to set this up so it wont reset with the process restart?


Some reference i've found on the net that has confused me more than help

http://stackoverflow.com/questions/9922894/set-global-max-allowed-packet-doesnt-work

http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_max_allowed_packet

http://www.techmajha.com/2011/03/15/installation-of-otrs-itsm-give-me-error-message-got-a-packet-bigger-than-max_allowed_packet-bytes-sql-insert-into-web_upload/
Thursday, November 15 2012, 01:41 PM
Share this post:
Responses (2)
  • Accepted Answer

    Thursday, November 15 2012, 04:07 PM - #Permalink
    Resolved
    0 votes
    Thanks, that had completelly skipped my mind even though i had searched the drive for my.cnf files before.

    I was able to edit settings on the /etc/my.cnf file and it worked.

    Thanks again for the help. I will use this information on another post I'm writting, about how to install OTRS::ITSM with LDAP.

    Thanks again.
    Rodrigo.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 15 2012, 03:51 PM - #Permalink
    Resolved
    0 votes
    You are probably aware of this, but let's just confirm...there can be up to two MySQL engine's running...one is the standard 'distro' MySQL...used for LAMP stack applications etc. The other, is used by Webconfig and is 'sandboxed'.

    Are you editing the correct my.cnf file? Former: /etc/my.cnf. Latter: /usr/clearos/sandbox/etc/my.cnf

    Ben
    The reply is currently minimized Show
Your Reply