Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-02-2011, 11:40 AM
vexxy's Avatar
vexxy vexxy is offline
 
Join Date: Aug 2007
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Invalid SQL problem

I've recently started to get this invalid SQL issues:

Code:
Invalid SQL:

SELECT *
FROM style
WHERE (styleid = 2 AND userselect = 1)
OR styleid = 2
ORDER BY styleid ASC
LIMIT 1;
And the MYSQL goes away, error 2006. It's not a particular script that does that, i've seen reports on attachments, on ajax.php etc. Can anyone tell me what's this error about and how can i fix it? I run on VB 4.1.7 and a dedicated box.

MY.CNF file:

Code:
max_connections=500
safe-show-database
connect_timeout=15
interactive_timeout=100
join_buffer=1M
key_buffer=768M
max_allowed_packet=32M
max_connect_errors=20
myisam_sort_buffer_size=128M
read_buffer_size=12M
read_rnd_buffer_size=12M
sort_buffer_size=12M
table_cache=1024
thread_cache_size=128
thread_concurrency=8
wait_timeout=60
query_cache_size=256M
query_cache_limit=8M
query_cache_type=1
skip-innodb

i've also raised the wait_timout to 120, no success..same problems appear
Reply With Quote
  #2  
Old 11-02-2011, 03:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you change a mysql config value, you need to restart mysql - did you do that? You may have to make the wait_timeout larger. George suggests upping it by about 60 each time until you find the right value for your site. I think I have my site set at 500 and it seems to be about right for us.
Reply With Quote
  #3  
Old 11-02-2011, 04:30 PM
vexxy's Avatar
vexxy vexxy is offline
 
Join Date: Aug 2007
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep I did restart it after each change as for that setting, your prolly have also a busy forum. The forum I have this problem is at its beginnings and max 10 users are posting within the forums. Also the traffic per day is max 500 uniques. Isn't it normal for vb to work under very light load with 120 timeout? Also, where's the invalid sql coming from? is there a script something i messed up and i need to repair it?
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 05:26 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.08717 seconds
  • Memory Usage 2,174KB
  • 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
  • (2)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_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