vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Invalid SQL problem (https://vborg.vbsupport.ru/showthread.php?t=273236)

vexxy 11-02-2011 11:40 AM

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

Lynne 11-02-2011 03:42 PM

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.

vexxy 11-02-2011 04:30 PM

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?


All times are GMT. The time now is 05:01 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.01042 seconds
  • Memory Usage 1,710KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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