vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   mysql error (https://vborg.vbsupport.ru/showthread.php?t=208131)

Zinzara 03-12-2009 05:15 PM

mysql error
 
I've been having crashing all day. Visited my Cpanel only to discover my mysql database was not even listed there... have no idea what happened. I had my VPS rebooted which brought the forum back up online.

Since then I continue to get this message

"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/xxxx/public_html/forum/includes/class_core.php on line 311"

How do I fix this? I'm a newb.

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

... and this one:

Quote:

Invalid SQL:

SELECT forum.forumid, lastpost, lastposter, lastthread, lastthreadid, lasticonid,
threadcount, replycount, lastpostid, lastprefixid

FROM forum AS forum;

MySQL Error : MySQL server has gone away
Error Number : 2006

GTAce 03-12-2009 05:29 PM

It looks to me like you either can't connect to the database or the database is not responding...if the database is not listed in cPanel, then that's a pretty good indicator that your database vanished. Is it still missing? Have you contacted your host about this?

Lynne 03-12-2009 05:38 PM

Here are some pages on each of those errors. They are both server problems that you may need to contact your host to fix.

MySQL Server has gone away:

This is a server issue. See this: http://www.vbulletin.com/docs/html/t...mysql_goneaway and this: http://www.vbulletin.com/forum/showt...265#post310265


MySQL can't connect (through socket):

See this page for the causes of this error: http://www.vbulletin.com/docs/html/cantconnect

Zinzara 03-12-2009 05:39 PM

Well, I can "see" my DB in my VPS WHM, but not in Cpanel. My forum is operational though, but with errors I have listed above.

Can I use SQL services to repair my database using my WHM?

Lynne 03-12-2009 07:19 PM

Nowhere in the errors does it say the database needs to be repaired. That is not what the errors are about at all. You should not perform a 'repair' on a database that does not need to be repaired.

Videx 03-14-2009 02:49 AM

Those are both very common errors on a shared server. They just mean the server is overloaded. VPS is supposed to be a lot less 'shared'. You can try contacting your host, but don't get your hopes up. As a last resort, try to get them to move you to a different server.


All times are GMT. The time now is 07:03 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.00954 seconds
  • Memory Usage 1,720KB
  • 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
  • (6)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