vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   too many connections? (https://vborg.vbsupport.ru/showthread.php?t=182282)

nicklfire 06-12-2008 01:05 PM

too many connections?
 
Hey guys,

Getting the following error on my vbulletin

Warning: mysql_connect() [function.mysql-connect]: Too many connections in /home/ftp/xxxxxxx/html/common/db.php on line 28
Error connecting to server: Too many connections

This is the first time i've seen this error happen.

Forum is located at bcaquaria.com

any help would be apprecaited.

snakes1100 06-12-2008 06:39 PM

1st, post the entire db error message.

2nd, from what you posted, the max_connections limit is set to low in my.cnf, increase the limit and restart mysql/apache.

nicklfire 06-12-2008 10:54 PM

well got my site back up, now when i try to post a new thread i'm getting ...

Database error in vBulletin 3.6.2:

Invalid SQL:
INSERT INTO post
(showsignature, allowsmilie, username, userid, title, pagetext, iconid, visible, parentid, threadid, dateline, ipaddress, attach)
VALUES
(1, 1, 'Nicklfire', 831, 'Re: Server Outage This Morning', 'testttttt', 0, 1, 0, 10364, 1213315564, '24.66.56.132', 0);

MySQL Error : Duplicate entry '98644' for key 1
Error Number : 1062
Date : Thursday, June 12th 2008 @ 05:06:04 PM
Script : http://bcaquaria.com/forum/newreply....treply&t=10364
Referrer : http://bcaquaria.com/forum/showthread.php?t=10364
IP Address : 24.66.56.180
Username : Shawns
Classname : vb_database

snakes1100 06-12-2008 11:17 PM

Do a repair on the table in question that the duplicate key is coming from.

geevest.com 06-19-2008 01:26 AM

snakes1100 : how to repair the duplicate key table ? thx

Marco van Herwaarden 06-19-2008 08:30 AM

AdminCP -> Maintenance -> Repair / Optimize Tables -> Fix Unique Indexes

CarlitoBrigante 06-19-2008 10:45 PM

Quote:

Originally Posted by snakes1100 (Post 1547860)
1st, post the entire db error message.

2nd, from what you posted, the max_connections limit is set to low in my.cnf, increase the limit and restart mysql/apache.

This is especially true in a lot of CPanel servers I had to work with recently.

geevest.com 06-24-2008 06:59 PM

maybe i must try this to fixed my problem : Fix Unique Indexes

Paul M 06-24-2008 07:45 PM

Just repairing the table will normally fix duplicate key issues, no need to use the other option as that rebuilds all indexes, a bit of overkill in most cases.


All times are GMT. The time now is 08:17 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.02213 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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