vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   vBulletin Database Error (https://vborg.vbsupport.ru/showthread.php?t=251115)

silencio2222 09-25-2010 02:29 AM

vBulletin Database Error
 
I started getting a database error just before I upgraded the v4.0.7 but now they are continuing.

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/xxxxxxx/public_html/forum/includes/class_core.php on line 313

Any suggestions?

Thanks.

KevinL 09-25-2010 12:25 PM

Read here http://www.vbulletin.com/docs/html/t...t_mysql_errors that should help you :)

silencio2222 09-25-2010 12:39 PM

Thanks Much. Appreciate your help. I will see what my host can share with me.

Videx 09-27-2010 02:15 AM

If you're on shared hosting, this is a very common error on oversold servers. Check your CPU loads. As the server gets slowed down, odd errors start happening.

silencio2222 09-27-2010 02:49 PM

Thanks...the error doesn't seem to be affecting the forum but it does concern me. The errors are generated at random times and I can't seem to pin point the error and the host doesn't seem to think that there is anything they can do short of moving it to a new server.

I did make some changes to the bandwidth and ran some mysql repair and checks using cpanel and vbulletin's options. So far so good but I don't have a clue yet if it is corrected....thanks so much for your help.

Quote:

Originally Posted by Videx (Post 2103539)
If you're on shared hosting, this is a very common error on oversold servers. Check your CPU loads. As the server gets slowed down, odd errors start happening.


Videx 09-27-2010 03:20 PM

Although changing servers can wreak havoc, if they're actually offering to do that for free it may be your best choice. Again, assuming this is a load issue. I know a move solved ours.

Forget playing around with your vb stuff, none of that will cause the mysql socket to not be available.

silencio2222 09-27-2010 03:24 PM

Videx,

Let me ask you if moving to a new server is recommended over creating a new mysql database on the same server?

Videx 09-27-2010 03:34 PM

Those are two totally different things that have nothing at all to do with one another. Create all the new dbs you want, but if the server is overloaded you won't be able to connect to those at times either.


All times are GMT. The time now is 04:59 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.01059 seconds
  • Memory Usage 1,721KB
  • 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
  • (8)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