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 04-17-2006, 05:40 PM
tinjon tinjon is offline
 
Join Date: May 2005
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default massive mysql failure after shared -> vps.

i used to be in a shared hosting, my site grew so moved to vps hosting. being a newbie to it, i've asked my host to copy the entire shared account over to my vps. and they did.

when i was in shared, i only used to get the "max user connection" mysql error. but eversince moving to vps, i'm getting that error and i'm being bombarded with other numerous mysql errors.

i' tried stop, start, restarting the vps itself, then start, stop, restart just the mysql service. no luck. changed localhost to 127.0.0.1 in the vb config.php file. still no luck. also tried restarting mysql from cpanel whm. same result. mysql is not available for just five mintues!!

please have a look at the image to get a sense of the errors i'm getting.
i need help.!!!!

here's the image link. http://img504.imageshack.us/img504/1156/helpme3ec.png
there's like 61 emails in each!

here are some sample errors. i hope anyone can help.
i'm so worried.
(i've got like almost a thousand of them since last night).

most of them are these:

mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
/home/joubonj/public_html/forum/includes/class_core.php on line 279

MySQL Error :
Error Number :



most of them are this kind and #1 below. .

just for curiosity, i checked out the mysql.sock file size and it said "unknown" . is that normal?

(and now its not even there. just checked.)



Code:
1) mysql_connect(): Lost connection to MySQL server during query
/home/joubonj/public_html/forum/includes/class_core.php on line 279



2) Invalid SQL:

                       SELECT COUNT(*) AS count, threadid, MAX(dateline) AS lastpost
                       FROM vbpost AS post
                       WHERE post.userid = 3847 AND
                       post.visible = 1 AND
                       post.threadid IN (0,1954,2394,265,2535,2472,1864,1925,120,1887,1884,2445,1553,968,1881,1255,456,2444,692,2387,2450,635,1268)
                       GROUP BY threadid;

MySQL Error  : Lost connection to MySQL server during query
Error Number : 2013



3) Invalid SQL:

               SELECT
                       userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
                       IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
                       language.phrasegroup_global AS phrasegroup_global,
                       language.options AS lang_options,
                       language.languagecode AS lang_code,
                       language.charset AS lang_charset,
                       language.locale AS lang_locale,
                       language.imagesoverride AS lang_imagesoverride,
                       language.dateoverride AS lang_dateoverride,
                       language.timeoverride AS lang_timeoverride,
                       language.registereddateoverride AS lang_registereddateoverride,
                       language.calformat1override AS lang_calformat1override,
                       language.calformat2override AS lang_calformat2override,
                       language.logdateoverride AS lang_logdateoverride,
                       language.decimalsep AS lang_decimalsep,
                       language.thousandsep AS lang_thousandsep

               FROM vbuser AS user
               LEFT JOIN vbuserfield AS userfield ON (user.userid = userfield.userid)
               LEFT JOIN vbusertextfield AS usertextfield ON (usertextfield.userid = user.userid) INNER JOIN vblanguage AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))

               WHERE user.userid = 1067;

MySQL Error  : Lost connection to MySQL server during query
Error Number : 2013



4) Invalid SQL:

                       SELECT title, data
                       FROM vbdatastore
                       WHERE title IN ('','options','bitfields','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron');



MySQL Error  : Lost connection to MySQL server during query
Error Number : 2013
and so on..
Reply With Quote
  #2  
Old 04-17-2006, 06:25 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I run fine on VPS.

I think your host screwed up. Copying everything from shared to dedicated format was probably not a good idea.

They should have set up a database there. Dumped your current data into it then had your existing site run from that database to check everything out. Then just copy files over before updating dns.

This could also just be a dns issue if the move just happened.
Reply With Quote
  #3  
Old 04-17-2006, 06:39 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

Sounds like you need to tune up mysql, what is in your my.cnf file ?
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 07:51 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.04004 seconds
  • Memory Usage 2,183KB
  • Queries Executed 11 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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