Results 1 to 6 of 6

Thread: Warning: mysql_connect(): User sugarcrm has already more than 'max_user_connection

  1. #1
    caojianhua is offline Junior Member
    Join Date
    Aug 2006
    Posts
    4

    Default Warning: mysql_connect(): User sugarcrm has already more than 'max_user_connection

    Help needed.

    I've new in SugarCRM, and just installed V4.5.

    I got frequently the following message :
    Warning: mysql_connect(): User sugarcrmhas already more than 'max_user_connections' active connections

    can anyone help me?

    Many thanks.
    Jian

  2. #2
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,101

    Default Re: Warning: mysql_connect(): User sugarcrm has already more than 'max_user_connectio

    Yes - you need to edit the mysql config file (my.ini or my.cnf depending on the platform) and up the value for the 'max_user_connections' variable. Don't forget to restart mysql after the change.

  3. #3
    caojianhua is offline Junior Member
    Join Date
    Aug 2006
    Posts
    4

    Default Re: Warning: mysql_connect(): User sugarcrm has already more than 'max_user_connection

    Thanks for your response. I will ask my host provider to change the config.

    However, it's quite strange that another program running on the same env. with different users and multiple connections works fine, while the SugarCRM test has been just setup and nobody else was connected apart from my own admin connection.

    Is there a bug or something wrong here ?

    Many thanks for your help.
    Jian

  4. #4
    caojianhua is offline Junior Member
    Join Date
    Aug 2006
    Posts
    4

    Default Re: Warning: mysql_connect(): User sugarcrm has already more than 'max_user_connection

    Still need help !!!

    The max_user_connections has been increased to 30, but still get the same problem, can't even logout.

    Thx.

  5. #5
    kpit's Avatar
    kpit is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Dec 2005
    Location
    Memphis, TN
    Posts
    996

    Default Re: Warning: mysql_connect(): User sugarcrm has already more than 'max_user_connectio

    SugarCRM uses persistant connections by default. You can change it by editing config.php in you SugarCRM directory.

    Code:
    look for the following in config.php:
    
      'dbconfigoption' =>
      array (
    	'persistent' => true,
    
    
    Change the line for 'persistent' to the following
    
    'persistent' => false,
    This will usually allow you to run in restrictive environments. but if you have a lot of users at one time you may still hit this problem. Also your host may be running out of max_connections. This may be especially true on a shared hosting connection. Try the above setting. this may solve your problems.
    Cheers,

    Max W. Blackmer, Jr.

    Blog
    Phone: +1 (901) 672-2694



  6. #6
    caojianhua is offline Junior Member
    Join Date
    Aug 2006
    Posts
    4

    Default Re: Warning: mysql_connect(): User sugarcrm has already more than 'max_user_connection

    REsolved.

    This is a known bug with V4.5RC1 by Sugar support, and fixed in V4.5 .

    I made the changed in config.php , and so far works fine, I will get 3 or 4 users to test, hope it will be ok.

    Many thanks for your help.
    Jian

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •