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=271719)

BirdOPrey5 10-10-2011 03:08 PM

Quote:

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
/home/ex-reapers/www/includes/class_core.php on line 314
Unfortunately this error doesn't give a whole lot of information, but we know it's not a table error or something like that.

vBulletin can't establish a connection to the database- is this happening every time? It sounds like you're saying it's intermittent... The latter being much harder to diagnose.

However since you mentioned you edited the php.ini file obviously the first place to start is to return it back the way it was and see if the problem goes away.

What type of hosting do you have? Shared/VPS/Dedicated?

Shadow 10-10-2011 03:12 PM

Thanks for helping out though Max, it's much appreciated.

The DB error has been there constantly since yesterday evening.

I have returned the php.ini file back to it's original state however earlier on Max stated that there may be some characters in there that have ruined the file. After checking, i found nothing of the sort and the file looks like it should.

I have a VPS server.

BirdOPrey5 10-10-2011 03:23 PM

I doubt there are any unusual characters. This is something that is sometimes an issue with Windows Notepad but almost never with a real text editor like Notepad++ which you said you used.

If it's a constant error meaning you can NEVER get to your forum we have to see why VB can't make the database connection.

Do you have phpmyadmin installed? If so can you confirm the database is accessible? You should be able to browse your forum database.

Did you do anything to your config.pp file? Is it possible your database settings changed?

Shadow 10-10-2011 03:51 PM

I cannot access my phpmyadmin panel at this time due to a username/password mismatch.

My config file hasn't been touched recently and my database settings have remained the same as far as i know.

EDIT: Site has been fixed, turns out the DB and Apache server turned themselves off for some reason.

BirdOPrey5 10-10-2011 06:04 PM

Glad to hear you are up again. :up:


All times are GMT. The time now is 06:11 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.01467 seconds
  • Memory Usage 1,724KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete