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 05-11-2011, 12:10 AM
fanhockeycoach fanhockeycoach is offline
 
Join Date: Aug 2010
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default MySQL Error

HELP!!! Could someone help me please.

I get 4-10 of these errors daily. It got so bad one day that my site crashed. Any advice? I contact my service provider and they told me that it has to do with viewing permissions. I have no idea what to do. Anything would be of help.


Database error in vBulletin :

mysql_pconnect() [<a href='function.mysql-pconnect'>function.mysql-pconnect</a>]: Can't connect to MySQL server on '205.178.146.86' (4)
/data/17/1/119/19/1608182/user/1733015/htdocs/fhc/includes/class_core.php on line 314

MySQL Error :
Error Number :
Request Date : Tuesday, May 10th 2011 @ 12:56:28 PM
Error Date : Tuesday, May 10th 2011 @ 12:57:29 PM
Script : http://www.fantasyhockeycoach.com/cr...and=1305046463
Referrer : http://fantasyhockeycoach.com/
IP Address : 209.121.214.47
Username :
Classname : vB_Database
MySQL Version :
Reply With Quote
  #2  
Old 05-12-2011, 08:25 AM
LeventX's Avatar
LeventX LeventX is offline
 
Join Date: Nov 2010
Location: Turkey
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the host service you are using? root or reseller hosting..

host of the web address from the control panel

phpmyadmin , select the repair database tables.

If you enter the following command from the ssh server authority.

Code:
mysqlcheck -u root -p --auto-repair --check --optimize --all-databases
and last.. mysql root password enter...

Code:
service mysql stop 
service mysql start
I hope that is helpful
Reply With Quote
  #3  
Old 05-12-2011, 04:36 PM
fanhockeycoach fanhockeycoach is offline
 
Join Date: Aug 2010
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where would I enter that code? What does that do? How often should I repair or optimize the tables? Sorry still new to mysql

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

I am using 50 of 300 MB is that enough or do I need more disk space?
Reply With Quote
  #4  
Old 05-12-2011, 05:05 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have enough disc space. When did this start to happen for the first time? Did you install any mod or did any other modifications to your forum before the error popped up?
Reply With Quote
  #5  
Old 05-12-2011, 06:42 PM
fanhockeycoach fanhockeycoach is offline
 
Join Date: Aug 2010
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it started 6 or 7 months ago. i don't think i install or did any other modifications
Reply With Quote
  #6  
Old 05-14-2011, 10:12 PM
fanhockeycoach fanhockeycoach is offline
 
Join Date: Aug 2010
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this reply from my host:

The error you are reporting is due to too many active connections to your MySQL database. If you are using mysql_pconnect(), this type of connection never closes. It is a persistent connection that stays open for later use. This can easily cause you to have too many active connections depending on how many people visit the website. We suggest you change it to mysql_connect() instead if you are using this. If you are using mysql_connect(), you may not be closing the database connection at the end of a query, please check that all connections are closed after use.

Does that make sense? Where do I make those changes? Is this something I change on the config.php file?
Reply With Quote
  #7  
Old 05-14-2011, 10:22 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is this set to in your config.php file?

PHP Code:
//    ****** MASTER DATABASE PERSISTENT CONNECTIONS ******
//    This option allows you to turn persistent connections to MySQL on or off.
//    The difference in performance is negligible for all but the largest boards.
//    If you are unsure what this should be, leave it off. (0 = off; 1 = on)
$config['MasterServer']['usepconnect'] = 0
Reply With Quote
  #8  
Old 05-14-2011, 10:36 PM
fanhockeycoach fanhockeycoach is offline
 
Join Date: Aug 2010
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have it set at 0
Reply With Quote
  #9  
Old 05-15-2011, 01:42 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Who is your hosting company?
Reply With Quote
  #10  
Old 05-15-2011, 05:49 PM
fanhockeycoach fanhockeycoach is offline
 
Join Date: Aug 2010
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

network solutions
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 01:26 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.07796 seconds
  • Memory Usage 2,256KB
  • 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_code
  • (1)bbcode_php
  • (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
  • (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_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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete