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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2009, 11:13 PM
j1mmy j1mmy is offline
 
Join Date: Feb 2006
Location: UK, England
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Too many MySQL connection Error

I'm sure many of you have come across an email error which says something along the lines of too many SQL connections etc.

I put Forward the error to my host and this is what I got:

Quote:
These sort of errors usually happen when your web script has made too many connections to the MySQL server without enough disconnections hence the "too many connections" message -- mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections.

This can be prevented by turning off what is called "persistent connections". This setting can likely be found in the configuration file for your vBulletin or in the admin panel. You may want too see if this is enabled, then disable it and see if it resolves these error messages.
Where can I find the connection configuration that he mentioned?
Reply With Quote
  #2  
Old 12-11-2009, 03:54 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look in your config.php file which is in your includes directory.
Reply With Quote
  #3  
Old 03-06-2010, 08:21 PM
j1mmy j1mmy is offline
 
Join Date: Feb 2006
Location: UK, England
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have made changes to the config file, but I am still getting these messages?

Does this mean that sometime whenever someone is browsing the website they would come up with a 404 or something similar??
Reply With Quote
  #4  
Old 03-06-2010, 08:34 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, they would get a database error page.
Reply With Quote
  #5  
Old 03-07-2010, 04:01 PM
j1mmy j1mmy is offline
 
Join Date: Feb 2006
Location: UK, England
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So when I actually disable the persistent connections via the config file, what actually happens to the MySQL connections? How does this affect it?
Reply With Quote
  #6  
Old 03-07-2010, 07:54 PM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The error tells you to disable it and see if it solves the problem.
Reply With Quote
  #7  
Old 03-16-2010, 02:49 PM
j1mmy j1mmy is offline
 
Join Date: Feb 2006
Location: UK, England
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, now I am getting this issue:

Database error in vBulletin 3.8.4:

Invalid SQL:

SELECT title, template
FROM template
WHERE templateid IN (6264,6265,6253,6255,6257,2247,6266,6267,6268,6688 ,4997,5001,4898,6228,6227,6229,6224,6223,6500,2253 ,2254,6453,6454,6720,6723,6732,3370,6474,6475,6476 ,6674,2263,6736,2264,2266,6310,6296,6293,6292,6309 ,6294,6295,6297,6298,6299,6300,6253,6255,6257,2247 ,6466,6462,6464,6465,6535,6536,6467,6463,6721,3972 ,3973,3988,3990,3989,3991);

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Tuesday, March 16th 2010 @ 08:50:09 AM
Error Date : Tuesday, March 16th 2010 @ 08:51:03 AM
Script : http://www.*******.com/calendar.php?...1&day=2011-1-4
Referrer :
IP Address : 216.129.119.42
Username : Unregistered
Classname : vB_Database
MySQL Version :
Reply With Quote
  #8  
Old 03-16-2010, 02:52 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please see the manual Lost connection to MySQL server during query
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 12:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03675 seconds
  • Memory Usage 2,224KB
  • 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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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