Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

connection simultané illimité

Discussion in 'General Discussion' started by hybrid56, Jul 2, 2011.

  1. hybrid56

    hybrid56 Member

    Joined:
    Jun 24, 2011
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    mysql simultaneous connection limit

    Hello,

    How to limit concurrent connections for some mysql package?
    The default is unlimited?
     
    #1 hybrid56, Jul 2, 2011
    Last edited: Jul 2, 2011
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Do you mean max_connections and max_user_connections variables for /etc/my.cnf file? If you set both, then MySQL will be limited for the maximum number of total MySQL connections on the server for max_connections and for the maximum number of database user connections per database for max_user_connections.

    If you do revise or add those settings to /etc/my.cnf file, please ensure to restart MySQL upon changing / adding them.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hybrid56

    hybrid56 Member

    Joined:
    Jun 24, 2011
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    In the file there

    You advise which configuration for 200 accounts?
    Server 4 core, 8GB ram
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I would advise:

    Code:
    max_connections = 512
    max_user_connections = 100
    I'm selecting 512 if this is what you have set for WHM > Apache Configuration > Global Configuration area for the MaxClients setting there. Otherwise, you should use whatever for max_connections that would match that of MaxClients, since you cannot have more MySQL connections maximum than Apache connections maximum.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. hybrid56

    hybrid56 Member

    Joined:
    Jun 24, 2011
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    The following settings are invalid and were rejected:

    maxclients: 512
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Where did you receive this error message? MaxClients is an Apache setting rather than a MySQL setting.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. hybrid56

    hybrid56 Member

    Joined:
    Jun 24, 2011
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51

    Attached Files:

    #7 hybrid56, Jul 13, 2011
    Last edited by a moderator: Jul 13, 2011
  8. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,544
    Likes Received:
    9
    Trophy Points:
    268
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice