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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2008, 05:32 AM
XStealth6 XStealth6 is offline
 
Join Date: Jul 2008
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can't connect to MySQL server on 'localhost'

I keep getting the following:


Quote:
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to MySQL server on 'localhost' (10048)
E:\inetpub\vhosts\d3gaming.com\httpdocs\includes\c lass_core.php on line 311
On my website D3gaming.com

happens atleast once a month.
my host isn't telling me much, but it's irratating because they're telling me all they do is recycle the mysql service and it's working.

So i'm thinking it's an issue with the host and not my site.
They also claim it may be an issue with my database, So here i am just looking for some insight. I need to get this corrected, even if i have to pay someone.

Any Ideas?
Reply With Quote
  #2  
Old 09-25-2008, 05:47 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The error is caused by the MySQL server being down. This is in-line with your host saying they are restarting the service. Most likely - someone happens to view your forum while the service is restarting.
Reply With Quote
  #3  
Old 09-25-2008, 06:09 AM
XStealth6 XStealth6 is offline
 
Join Date: Jul 2008
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
The error is caused by the MySQL server being down. This is in-line with your host saying they are restarting the service. Most likely - someone happens to view your forum while the service is restarting.


Hey Dismounted,

Thank you for responding. I am begining to be a bit concerned with the frequency of this problem. Currently i am using a shared hosting because my website is not that big. I am concerned that if i continue with their service/server That this may be a constant thing.

Is this normal for something like this to happen monthly? Obviously there has to be something causing it. I am just trying to cover my base and make sure it's not my site.

PS. I just wanted to add, Currently the problem is intermitent. I can load the page, then randomly get a database error, the site automatically emails me the error and it's the same error every single time.
Reply With Quote
  #4  
Old 09-25-2008, 07:24 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It depends on your host - it's usually routine to restart services such as MySQL though, to clear up some memory.
Reply With Quote
  #5  
Old 09-25-2008, 11:18 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The MySQL errorlog might reveal the reason.
Reply With Quote
  #6  
Old 09-25-2008, 02:05 PM
XStealth6 XStealth6 is offline
 
Join Date: Jul 2008
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what i got.





Quote:
E:\Program Files\SWsoft\Plesk\Databases\MySQL\Data\d3gaming_v b>myisamchk -c *.MY

I

Checking MyISAM file: adv_modules.MYI

Data records: 6 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check data record references index: 2

- check record links



---------



Checking MyISAM file: adv_pages.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check data record references index: 2

- check record links



---------



Checking MyISAM file: adv_setting.MYI

Data records: 122 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check record links

myisamchk: error: Found wrong record at 0

MyISAM-table 'adv_setting.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



Checking MyISAM file: adv_settinggroup.MYI

Data records: 3 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links

myisamchk: error: Found wrong record at 0

MyISAM-table 'adv_settinggroup.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



Checking MyISAM file: itrader.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check data record references index: 2

- check data record references index: 3

- check data record references index: 4

- check record links



---------



Checking MyISAM file: itrader_comments.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check data record references index: 2

- check data record references index: 3

- check record links



---------



Checking MyISAM file: language.MYI

Data records: 1 Deleted blocks: 1

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links

myisamchk: error: Found wrong record at 0

MyISAM-table 'language.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



myisamchk: error: 'post.MYI' doesn't have a correct index definition. You need t

o recreate it before you can do a repair



---------



Checking MyISAM file: postedithistory.MYI

Data records: 78 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check data record references index: 2

- check record links

myisamchk: error: Found wrong record at 0

MyISAM-table 'postedithistory.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



Checking MyISAM file: ppgal_categories.MYI

Data records: 1 Deleted blocks: 2

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check data record references index: 2

- check record links

myisamchk: error: Found wrong record at 68

MyISAM-table 'ppgal_categories.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



Checking MyISAM file: ppgal_customfields.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links



---------



Checking MyISAM file: ppgal_customfields_entries.MYI

Data records: 40 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1



---------



Checking MyISAM file: ppgal_ecards.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links



---------



Checking MyISAM file: ppgal_exif.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links



---------



Checking MyISAM file: ppgal_favorites.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference



---------



Checking MyISAM file: ppgal_filetypes.MYI

Data records: 0 Deleted blocks: 0

myisamchk: warning: Table is marked as crashed and last repair failed

- check file-size

myisamchk: warning: Size of indexfile is: 3072 Should be: 1024

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check data record references index: 2

- check record links

myisamchk: error: Found wrong record at 0

MyISAM-table 'ppgal_filetypes.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



myisamchk: error: 'ppgal_images.MYI' doesn't have a correct index definition. Yo

u need to recreate it before you can do a repair



---------



Checking MyISAM file: ppgal_moderator.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check record links



---------



Checking MyISAM file: ppgal_permissions.MYI

Data records: 2 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1



---------



Checking MyISAM file: ppgal_posts.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check data record references index: 2

- check data record references index: 3

- check data record references index: 4

- check record links



---------



Checking MyISAM file: ppgal_rate.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links



---------



Checking MyISAM file: ppgal_search.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links



---------



Checking MyISAM file: ppgal_setting.MYI

Data records: 122 Deleted blocks: 1

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links

myisamchk: error: Found wrong record at 0

MyISAM-table 'ppgal_setting.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



Checking MyISAM file: ppgal_settinggroup.MYI

Data records: 14 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links

myisamchk: error: Found wrong record at 0

MyISAM-table 'ppgal_settinggroup.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



Checking MyISAM file: ppgal_stats.MYI

Data records: 60 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1



---------



Checking MyISAM file: ppgal_subscribecat.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference



---------



Checking MyISAM file: ppgal_subscribeimage.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference



---------



myisamchk: error: 'socialgroup.MYI' doesn't have a correct index definition. You

need to recreate it before you can do a repair



---------



Checking MyISAM file: thread.MYI

Data records: 207 Deleted blocks: 2

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check data record references index: 2

- check data record references index: 3

- check data record references index: 4

- check data record references index: 5

- check data record references index: 6

- check data record references index: 7

- check data record references index: 8

- check record links

myisamchk: error: Found wrong record at 0

MyISAM-table 'thread.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



Checking MyISAM file: tmnt_comments.MYI

Data records: 5 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links

myisamchk: error: Found wrong record at 0

MyISAM-table 'tmnt_comments.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



Checking MyISAM file: tmnt_members.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links



---------



Checking MyISAM file: tmnt_players.MYI

Data records: 2 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links

myisamchk: error: Found wrong record at 0

MyISAM-table 'tmnt_players.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



Checking MyISAM file: tmnt_teams.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links



---------



Checking MyISAM file: tmnt_tmnts.MYI

Data records: 1 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links

myisamchk: error: Found wrong record at 0

MyISAM-table 'tmnt_tmnts.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



Checking MyISAM file: userfield.MYI

Data records: 121 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links



---------



Checking MyISAM file: zoints_tag.MYI

Data records: 244 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links

myisamchk: error: Found wrong record at 2120

MyISAM-table 'zoints_tag.MYI' is corrupted

Fix it using switch "-r" or "-o"



---------



Checking MyISAM file: zoints_tag_update.MYI

Data records: 84 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1



---------



Checking MyISAM file: zointstags_search.MYI

Data records: 0 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

- check record links
Now , the problem is finding out which of these tables correlate to what?

I see that zoints tags is corrupted from what they're telling me but would that be enough to bring down an entire board?
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 03:01 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.04350 seconds
  • Memory Usage 2,262KB
  • 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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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