Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 5 of 5

This is a discussion on Noob question - set max_allowed_packet? in the VPS & Dedicated forum
Is there any way of setting max_allowed_packet? I'm trying to import data using a sql statement and rather than have to chop up some of ...

  1. #1
    JPC Member
    Join Date
    Jul 2007
    Posts
    4

    Noob question - set max_allowed_packet?

    Is there any way of setting max_allowed_packet? I'm trying to import data using a sql statement and rather than have to chop up some of the insert statements is there a way to set this? I tried using the shell but it doesn't seem to work? Stills shows up as 1 MB max.

  2. #2
    JPC Support Smithjp's Avatar
    Join Date
    Jun 2006
    Location
    Planet Earth
    Posts
    166
    You can increase max_allowed_packet by specifying size in /etc/my.cnf:

    max_allowed_packet = 32M

    Make sure that you restart the mysql (service mysql restart) after making changes to my.cnf.

  3. #3
    JPC Member
    Join Date
    Jul 2007
    Posts
    4
    Quote Originally Posted by JPC-Smith View Post
    You can increase max_allowed_packet by specifying size in /etc/my.cnf:

    max_allowed_packet = 32M

    Make sure that you restart the mysql (service mysql restart) after making changes to my.cnf.
    Do you have to create this file yourself? I checked out the vps root directory "etc" and didn't find the file? I tried creating a simple file with:

    [mysqld]
    max_allowed_packet=16M

    I put it in the etc root folder. I also tried naming it with a dot in front? ".my.cnf". Not sure what I'm doing wrong.

  4. #4
    JPC Support Smithjp's Avatar
    Join Date
    Jun 2006
    Location
    Planet Earth
    Posts
    166
    It should be there. Please open a support ticket and we will check it out and let you know.

  5. #5
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    The file "my.cnf" didn't exist in my systems as well, so i created mine with:

    Code:
    [mysqld]
    set-variable = max_connections=1000

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •