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 10-17-2007, 02:31 PM
steveninstl steveninstl is offline
 
Join Date: Jul 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default VBulletin Database Errors

I keep getting database errors that point to the class_core.php line 274

This is an example of the error:

Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) /home/themesbb/public_html/t4bbforum/includes/class_core.php on line 274

MySQL Error :
Error Number :
Date : Wednesday, October 17th 2007 @ 10:46:07 AM
Script : http://www.themes4bb.com/t4bbforum/
Referrer : http://www.themes4bb.com/
IP Address : 209.145.141.2
Username :
Classname : vb_database



I am not an expert on PHP and I do not know if there is an error or if it is server related. I have taled to my host SEVERAL times regarding this error. They have modified the MySQL database so that more connections may connect...but I still get the database errors.

Any idea what I can do?

Thanks for your input.

Steve
Reply With Quote
  #2  
Old 10-17-2007, 02:58 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you sure mysql aint down on your server also where is the error number ?

MySQL Error :

edit seems u fixed it your board is up and running fine
Reply With Quote
  #3  
Old 10-17-2007, 03:08 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

That error generally means mysql was not running.
Reply With Quote
  #4  
Old 10-17-2007, 05:01 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. The info in your config.php file is wrong (in which case your forums wouldn't work at all), or
2. MySQL crashed, it's not running or it can't find the socket. You need to contact your host about this. A restart of the MySQL deamon might solve it.

Here is more info on this error:
http://dev.mysql.com/doc/mysql/en/Ca...to_server.html
Reply With Quote
  #5  
Old 10-17-2007, 05:53 PM
steveninstl steveninstl is offline
 
Join Date: Jul 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the info...

I have contacted my host SEVERAL times..and I am beginning to wonder if I am on "the list"...

Everytime I email them or send in a support ticket, they reply..."your site is up and running, we cannot find a problem."

I have sent them copies of the error messages and everything.

Also..how can I tell if the PHP file is correct or not? This is the PHP file that was supplied when I installed VBulletin.

Thanks again..
Steve
Reply With Quote
  #6  
Old 10-17-2007, 06:16 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

You must have edited it to enter your database details. Check they are still correct.
Reply With Quote
  #7  
Old 10-17-2007, 06:54 PM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="darkgreen">Sounds exactly like what my host is doing to me. I still get these errors from time to time and I never changed the config file as it just started happening a couple of weeks ago.

I did get them to discover that they have a db latency issue on their mysql server. So hopefully if they ever fix that it will fix the errors too.

What host do you have? I have networksolutions, the worst host in the world. I am moving my sites soon as the contract is almost up.</font>
Reply With Quote
  #8  
Old 10-22-2007, 04:20 PM
Nam's Avatar
Nam Nam is offline
 
Join Date: Oct 2001
Location: NY
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't seem to be a host issue. I have a host with Layeredtech (dedicated server, not shared) and I still getting the same error email as OP about 100 every 5 mins. My managed server company can't seem to find out what's wrong.

Worst yet, I can't disable the email error. I disable error and handling in vboption, change email to different email in config.php. I even tried to close the forum and my old email is still keep getting error .
Reply With Quote
  #9  
Old 10-22-2007, 05:24 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

If you are updating the config.php to a new address and still getting errors to the old address then clearly something is wrong with what you are doing - either you are not editing the right file, or your changes are not being saved (or maybe a php cache is in use and it is not picking up the changes).
Reply With Quote
  #10  
Old 10-22-2007, 06:07 PM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="darkgreen">I get the db errors when I have just 1 or 2 members/guests on my site. How could it be a connection limit issue if there is only 1 or 2?</font>
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 02:14 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.04143 seconds
  • Memory Usage 2,247KB
  • 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)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_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