Go Back   vb.org Archive > Community Discussions > Forum and Server Management
  #1  
Old 06-23-2010, 05:55 AM
Martin_S Martin_S is offline
 
Join Date: Jan 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default MySQL server has gone away reading from vb3_style

Hi,

after updating to vbulletin 4 I get the following error mail some times per week:

Invalid SQL:

SELECT *
FROM vb3_style
WHERE (styleid = 4 AND userselect = 1)
OR styleid = 4
ORDER BY styleid ASC
LIMIT 1;

MySQL-Fehler : MySQL server has gone away
Fehler-Nr. : 2006

I know that "MySQL server has gone away" indicates a timeout. But hey, the statement is one of the easiest ones. And I don't get the same error with other statements!
What's wrong with this statement or the table? The Table only contains two records: the default style and my own style (with styleid 4)...

Thanks for help!

Martin
Reply With Quote
  #2  
Old 06-24-2010, 05:42 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please see the manual on this error: Lost connection to MySQL server during query
Reply With Quote
  #3  
Old 06-24-2010, 06:09 AM
Martin_S Martin_S is offline
 
Join Date: Jan 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your answer. I have read the manual before asking. But I can't find any help there for my problem. The mentioned reasons in the manual:

Quote:
1. Is that the server timed out and closed the connection. By default, the server closes the connection after 8 hours or 28800 seconds if nothing has happened. You can change the time limit by setting the wait_timeout variable when you start mysqld via your server's /etc/my.cnf as well.
The statement is in my case very short (no join, selection of one row of a table with two rows). All other statements of vbulletin (which are much more expensive) work without an error.

Quote:
2. Another common reason to receive the MySQL server has gone away error is because you have issued a ``close'' on your MySQL connection and then tried to run a query on the closed connection. You can check that the MySQL hasn't died by executing mysqladmin version and examining the uptime.
All other statements work at the same time without an error.

Quote:
3. You can also get these errors if you send a query to the server that is incorrect or too large.
In phpmyadmin the statement works without an error.

Quote:
4. Or simply your host restarted MySQL. I'd contact your web host and ask him to look into this.
That's not possible if the error only occurs on this statement...

So - any ideas?

Martin
Reply With Quote
  #4  
Old 06-24-2010, 06:23 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It could be that a previous statement is overloading the MySQL server anbd by that causing the subsequent statement to generate this error.

Try disabling all your plugins and see if that solves the issue.
Reply With Quote
  #5  
Old 06-24-2010, 11:00 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Martin_S View Post
Hi,

after updating to vbulletin 4 I get the following error mail some times per week:

Invalid SQL:

SELECT *
FROM vb3_style
WHERE (styleid = 4 AND userselect = 1)
OR styleid = 4
ORDER BY styleid ASC
LIMIT 1;

MySQL-Fehler : MySQL server has gone away
Fehler-Nr. : 2006

I know that "MySQL server has gone away" indicates a timeout. But hey, the statement is one of the easiest ones. And I don't get the same error with other statements!
What's wrong with this statement or the table? The Table only contains two records: the default style and my own style (with styleid 4)...

Thanks for help!

Martin
The statement may be fine, but whats in that style?

Does it do the same thing requesting a different style id?
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09050 seconds
  • Memory Usage 2,197KB
  • 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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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