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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2012, 08:22 PM
temsamane temsamane is offline
 
Join Date: Sep 2010
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database error: too many connections includes/class_core.php

every day i got a lot of these database errors in my mail inbox.

the message is the same, but ip adresses are different.



Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections
/home/jamalbbb/public_html/WEBSITE.nl/forums/includes/class_core.php on line 315

MySQL Error :
Error Number :
Request Date : Sunday, February 26th 2012 @ 09:45:33 AM
Error Date : Sunday, February 26th 2012 @ 09:45:33 AM
Script : http://www.WEBSITE.nl/forums/showthread.php?t=2314
Referrer :
IP Address : 76.72.167."""
Username :
Classname : vB_Database
MySQL Version :
Reply With Quote
  #2  
Old 02-26-2012, 09:29 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 02-26-2012, 10:29 PM
BigAl205's Avatar
BigAl205 BigAl205 is offline
 
Join Date: Oct 2010
Location: Hayden,AL
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you using Hostgator as your host? I used to get it all the time, but since I switched to Gigapros, I haven't had any more problems.
Reply With Quote
  #4  
Old 02-26-2012, 11:37 PM
temsamane temsamane is offline
 
Join Date: Sep 2010
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i am using arvixe

--------------- Added [DATE]1330303775[/DATE] at [TIME]1330303775[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
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


thank you for this respons

i tried this, but its not working lynne
Reply With Quote
  #5  
Old 02-27-2012, 04:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If that's not working, then you need to contact your host about the error.
Reply With Quote
  #6  
Old 02-28-2012, 12:42 PM
temsamane temsamane is offline
 
Join Date: Sep 2010
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the host is telling me this:

Quote:
this error indicates that your account has too many active connections to the database server at any one time. This is usually due to the site being too busy, or having some error that is not closing database connections after they are being made.
Are your database connections all coming from the same user, or do you have a unique user for each script/database that is configured?
but i don't have a lot of page views, just 1000 a day. ( i have only only database user).

The hosting cant solve this problem.

what do they mean about: 'some error that is not closing database connections after they are being made'?

can i solve this?
Reply With Quote
  #7  
Old 02-28-2012, 05:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You solve it by getting a host that allows more connections.
Reply With Quote
Благодарность от:
temsamane
  #8  
Old 02-28-2012, 09:09 PM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What Lynne said is true, but several years ago I was running into the same problem, and it was some stuff that I wrote as well as some third-party modifications that were causing the problem, clogging stuff up. So, if switching hosts is not a feasible solution for you and you do have some addons, try disabling them. If that "solves" your problem, you know the issue is with one of them--if not, then you're pretty much SoL, and just have to get a better host. XD
Reply With Quote
Благодарность от:
temsamane
  #9  
Old 03-02-2012, 09:48 AM
temsamane temsamane is offline
 
Join Date: Sep 2010
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You solve it by getting a host that allows more connections.
i think that's the best solution

--------------- Added [DATE]1330685400[/DATE] at [TIME]1330685400[/TIME] ---------------

Quote:
Originally Posted by Sarteck View Post
What Lynne said is true, but several years ago I was running into the same problem, and it was some stuff that I wrote as well as some third-party modifications that were causing the problem, clogging stuff up. So, if switching hosts is not a feasible solution for you and you do have some addons, try disabling them. If that "solves" your problem, you know the issue is with one of them--if not, then you're pretty much SoL, and just have to get a better host. XD
i will disable all the mods for some days. We have to try everything before we leave to another host. Thanks Sarteck
Reply With Quote
  #10  
Old 03-04-2012, 03:17 PM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey temsamane, just checking back to see if you got this somewhat resolved. Do you need a new host, or was it a plugin causing the problem?
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 08:19 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.05024 seconds
  • Memory Usage 2,266KB
  • 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
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete