|
#1
|
|||
|
|||
|
I'm getting an error message on one of my sites that says the following:
Code:
Warning: mysql_connect(): User asdf_user has already more than 'max_user_connections' active connections in /home/asdf/public_html/forum/db/mysql4.php on line 48 |
|
#2
|
||||
|
||||
|
the error means you are having more than 20 sql connections in few seconds period. I would take a look at your coding there is most likely some type of problem.
__________________
Gators love marshmallows. |
|
#3
|
||||
|
||||
|
Two of my clients running osCommerce have started getting the exact same error this morning. One of the sites has been running happily for weeks, the other for months without producing any errors.
|
|
#4
|
|||
|
|||
|
Quote:
BTW, this is the first server-related error I have gotten since switching to HostGator and it isn't even necessarily a problem with the server. I have been very pleased with the hosting / support here... |
|
#5
|
||||
|
||||
|
I have had no problems with Hostgator prior to this... The two sites having the problem are the only 2 sites (out of over 50 we host with Hostgator) that are having a problem, and they are also the only 2 running the CRELoaded version of osCommerce rather than the standard version.
Brent, would it be possible to up the max_connections in php.ini to 100 to try and clear this problem. It may be that the CRELoaded model requires more than 20 concurrnet connections? I should point out that the sites in question only recently switched to the CRELoaded installation of osCommerce. Last edited by Andeavour; 05-26-2005 at 07:09 AM. Reason: Additional information |
|
#6
|
||||
|
||||
|
Dunno much about that version of OSCommerce but could this issue possibly have anything to do with persistent connections being enabled? I recall the setup mentioning that that would not be an appropriate choice for shared servers.
Antonio |
|
#7
|
||||
|
||||
|
With the help of Chad at Hostgator we got it sorted. He restarted the MySQL service to clear out the connections and I got the client to disable persistant connections.
I'd just like to thank Chad for his help as the client in question actually found Hostgator's number and rang them direct whilst I was on LiveChat trying to get things sorted, and I believe spoke to Chad (ironic eh?). |
|
#8
|
|||
|
|||
|
Hiya i and another site simular to mine are also getting these errors i thought creating new usernames to the databases would resolve the issue and it did for a little while but the problem is back, like yourselves i have had my hostgator package and my site online now for over a year it must be and this is the first time this has become a problem, if i need to disable this "allow persistant connections" where can i find it? i dont remember seeing it anywhere on my site or in cpanel also is this a result of something recently being implimented with Hostgator?
all help greatly appreciated |
|
#9
|
||||
|
||||
|
in your config file for OSCommerce edit from true to false like so:
define('USE_PCONNECT', 'false'); HTH Antonio Last edited by amartins; 06-11-2005 at 06:39 AM. Reason: including code |
|
#10
|
|||
|
|||
|
as far as i know i do not have that module installed, i am running phpnuke platinum (7.6) i cannot see OSCommerce in the modules list anywhere
|
|
#11
|
||||
|
||||
|
Sorry my mistake, this threas mentioned OSCommerce so I assumed that was your issue too.
You need to check on ther error message you get to pinpoint if it's a module or phpnuke itself.. maybe if you showed your error message more help would be forthcomming. Antonio |
|
#12
|
||||
|
||||
|
How do I check if i-m using persistent mysql connecting with phpBB?
I'm using a default instalation ... so i think it shouldn't but... cheers,
__________________
Vtrain is Linux User #237333 on http://counter.li.org/ "Don't meddle in the affairs of sysadmins, for they are subtle and quick to anger." |
|
#13
|
|||
|
|||
|
I am not getting this on all of my accounts on bentley. Definetly not a issue with the accounts more likely one with the total limit
|
|
#14
|
|||
|
|||
|
I read somewhere else that Hostgator had reduced the number of concurrent connections allowed as a protection against something (can't remember what now).
I had the same problem in a site with a phpbb (so will happen in a nuke too). It IS to do with persistent connections. If you can spot the error being displayed it will show you which file (and possibly even line number) where the error occurs. You will see something like the error in the original post "home/asdf/public_html/forum/db/mysql4.php on line 48" but this goes on to show something with 'pconnect' in it. You need to open that file and change the 'pconnect' to 'connect'. This drops the connection (i.e. NOT persistent) as soon as the user logs out, so should cure the problem. I found 2 files with this in them over a couple of weeks. Once I made the changes the problem cleared. You may need to ask Hostgator to restart MySQL after you have fixed the problems (probably essential in fact, but it's no big deal - they'll do it if you tell them you've just fixed some code to clear the persistent connection problem). If you can't see the file or line number in the error message do a search in ftp for 'pconnect'. If you know the right file you'll fix the problem in less than a minute. If you have to check all/lots of files it'll be a bit of a drag obviously, but it WILL work. |
|
#15
|
|||
|
|||
|
I got this error aswell, on linerider.org
|
|
#16
|
|||
|
|||
|
It appears MAX_USER_CONNECTIONS is limited to 25 at HostGator.
According to vBulletin.com, this is an extremely low limit. Most hosts are set at 100 and some you can find set to 500. Even with persistent connections turned off, my forum is showing errors. |
|
#17
|
|||
|
|||
|
Same problem here with a CMS Made Simple site. I had it with another provider and the client wanted to move to HostGator, as soon as we moved the max_user_connections error started showing. With the previous provider this error never showed.
I have a dedicated server so I presume I can set this value at my discretion, just don't now where to set it in the WHM or the cPanel. Anybody have any ideas? |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Escape: mysql_connect(): Can't connect to local MySQL server through socket | RyanM | Shared Hosting Support | 6 | 10-02-2006 05:45 PM |
| xeoman guestbook/ mysql help needed | marlies63 | Shared Hosting Support | 2 | 01-31-2005 02:42 PM |
| MySql Database Connection Errors | mortgage-pro-seo | Shared Hosting Support | 3 | 01-28-2005 04:31 AM |
All times are GMT -5. The time now is 02:24 PM.









