vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Too many connections (line 311) (https://vborg.vbsupport.ru/showthread.php?t=250765)

v123shine 09-18-2010 04:36 PM

Too many connections (line 311)
 
Hello,

I got more than 4000 error mail per day, this is the content of mail:

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections /home/*****/includes/class_core.php on line 311

How to solve this?

Note: i'm using vb 3.8.4

Thank You

Lynne 09-18-2010 05:02 PM

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

v123shine 09-18-2010 11:46 PM

Thank you Lynne for help me :)
I already add that code in confing.php
but i'm still get alot error mail

can you give me others solution, please!

SVTCobraLTD 09-18-2010 11:57 PM

Quote:

Originally Posted by Lynne (Post 2100133)
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

Does it matter where this is added?

Lynne 09-19-2010 02:36 AM

Quote:

Originally Posted by v123shine (Post 2100272)
Thank you Lynne for help me :)
I already add that code in confing.php
but i'm still get alot error mail

can you give me others solution, please!

I gave you the other solution:
Quote:

But, if you still have the problem you will have to talk to your host about raising that limit.
Quote:

Originally Posted by SVTCobraLTD (Post 2100274)
Does it matter where this is added?

On it's own line fter the <?php and before the ?>


All times are GMT. The time now is 01:15 PM.

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.02692 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete