Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2011, 06:50 PM
dlewisr dlewisr is offline
 
Join Date: Mar 2011
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default mysql database error

For the last couple of days I have been receiving the email below. Can anyone explain what this means and how to get solve the issue.

Cheers in advance.

Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: User xxxxx admin already has more than 'max_user_connections' active connections
/home/xxxxxxx/public_html/includes/class_core.php on line 314

MySQL Error :
Error Number :
Request Date : Saturday, July 23rd 2011 @ 12:22:28 PM
Error Date : Saturday, July 23rd 2011 @ 12:22:28 PM
Script : http://www.xxxxxxxxxx.co.uk/forum.php
Referrer :
IP Address : xxxxxxxxxx
Username :
Classname : vB_Database
MySQL Version :
Reply With Quote
  #2  
Old 07-23-2011, 07:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The server has maxed out the number of MySQL connections it allows. You can try turning persistent connections off by adding this to your config.php:
PHP Code:
$config['MasterServer']['usepconnect'] = 0
But, if you still have the problem you will have to talk to your host about raising that limit. Also, see this Common MySQL Error Messages
Reply With Quote
  #3  
Old 07-23-2011, 07:49 PM
dlewisr dlewisr is offline
 
Join Date: Mar 2011
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Lynne. That is already added to my config. I have just received an email from the Host Papa

We allow up to 15 simultaneous connections per MySQL user, and up to 150 simultaneous connections per server.

Fifteen connections are more than enough for most sites. Most connections are only open a fraction of a second, so 15 simultaneous connections is usually sufficient, even for a forum (for example) with hundreds of members.

It's a very small forum that I have with only 60 members!
Reply With Quote
  #4  
Old 07-24-2011, 12:53 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reminds me of my Bad Old Days on HG. What they didn't tell you in that email is that if they oversell their shared servers then each connection stays open way longer than it should, and this error can result. You want to look to the server load, and try complaining about that. Good Luck - they'll probably just try to sell you a "less shared" server like a VPS.
Reply With Quote
  #5  
Old 07-24-2011, 04:42 PM
dlewisr dlewisr is offline
 
Join Date: Mar 2011
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They haven't been any help at all really, as with other issues. It's frustrating as I asked lots of questions such as server load before I signed and was reassured that they fitted all of my needs. You hit the nail on the head, as they have suggested I move to a VPS server, which they don't provide and I have prepaid for 3 years!

Thanks for the reply Videx
Reply With Quote
  #6  
Old 11-22-2011, 06:52 PM
silver.fox1969 silver.fox1969 is offline
 
Join Date: Sep 2009
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just want to find out how you got on with this error as im getting the same problem and my host allows 10 connections per MySQL on my small forum.
Reply With Quote
  #7  
Old 03-01-2013, 08:45 AM
CILGINKRAL_'s Avatar
CILGINKRAL_ CILGINKRAL_ is offline
 
Join Date: May 2007
Location: Turkey
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne thank you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13987 seconds
  • Memory Usage 2,220KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete