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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2008, 03:00 AM
suraja suraja is offline
 
Join Date: May 2008
Location: California
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default max_user_connections Database error

Hi,

I need suggestions here, I always got this error report :
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: User mydatabase already has more than 'max_user_connections' active connections

When I tried to contact my hosting at Servage.net, they said they only allow 20 Mysql connections at a time

Is there any solution for this problem? Please help
Reply With Quote
  #2  
Old 11-24-2008, 03:02 AM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your host can up your amount of connections
Reply With Quote
  #3  
Old 11-24-2008, 03:03 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upgrade your hosting, or move to a better vBulletin web host that allows more than 20 concurrent connections.
Reply With Quote
  #4  
Old 11-24-2008, 03:16 AM
suraja suraja is offline
 
Join Date: May 2008
Location: California
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Servage won't raise amount of connections, and they also don't have other hosting package to upgrade

Is there any other solution than move to other host??
Reply With Quote
  #5  
Old 11-24-2008, 03:18 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, you can only work with what servage will let you work with.
Reply With Quote
  #6  
Old 11-24-2008, 03:25 AM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ditch them if they wont help you when you need it now then they wont be there when you need them later either
Reply With Quote
  #7  
Old 11-24-2008, 03:50 AM
suraja suraja is offline
 
Join Date: May 2008
Location: California
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's what Servage team suggest me:

The error of max user connections that occurred happens when an account on the server is opening to many connections to mysql on the server. This happens sometimes with poorly written code that leaves connections open and keeps opening more connections. When one account does this it affects the entire mysql server resulting in the error you received and is only fixed when we find the issue and stop those lingering connections. Please note the same at your end.

It seems that your script is generating too many mysql connections at a time. I would like to suggest you a couple of things which you should always keep in mind.

1. Check that your PHP code and any other tools always close connections - many database servers require this, and it is good practice.

2. Use mysql_connect() instead of mysql_pconnect() unless you have a good reason to do so.

3. Always put a mysql_close() in the scripts you are using.
Reply With Quote
  #8  
Old 11-24-2008, 03:57 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vBulletin writes code pretty good and no other users have these problems so unless your site is to large for shared hosting, or you have a modification thats causing the problem but that would be impossible for us to tell.
Reply With Quote
  #9  
Old 11-24-2008, 04:04 AM
suraja suraja is offline
 
Join Date: May 2008
Location: California
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My site only have 2-3k unique per day and no modif there
Reply With Quote
  #10  
Old 11-24-2008, 08:41 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by suraja View Post
My site only have 2-3k unique per day and no modif there
Seriously? 2-3k uniques daily on shared hosting?

I'm pretty sure you should be thanking servage for hosting that on a shared environment then.

Its simply time to upgrade to a VPS.
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 09:53 AM.


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.07611 seconds
  • Memory Usage 2,241KB
  • Queries Executed 11 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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