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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2007, 08:39 PM
GoHorns123 GoHorns123 is offline
 
Join Date: Aug 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database error

Can anyone tell me why I would get this database error for a couple of hours, and then the board went back to being fine & running. What would cause this error?

Invalid SQL:

SELECT *
FROM datastore
WHERE title IN ('','options','bitfields','attachmentcache','forum cache','usergroupcac
he','stylecache','languagecache','products','plugi nlist','cron','pr
ofilefield','userstats','birthdaycache','maxlogged in','iconcache','eventcac
he','mailqueue');

MySQL Error : User 'i' has exceeded the 'max_questions' resource (current value: 50000)
Error Number : 1226
Reply With Quote
  #2  
Old 08-21-2007, 08:40 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

Because you hit a limit set by your host, that limit is a timed limit so once the time has expired you are ok again.
Reply With Quote
  #3  
Old 08-21-2007, 08:41 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To my knowledge, the "max_questions" resource refers to the amount of SELECT queries that are allowed to be performed per hour, so after that hour passed - you were fine.
Reply With Quote
  #4  
Old 08-21-2007, 08:52 PM
GoHorns123 GoHorns123 is offline
 
Join Date: Aug 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Our board isn't busy at all. Maybe 9 people post there, and we've never seen that error before. That's why I was confused to why we got that error.

What exactly is select queries? Is that hits to the board?
Reply With Quote
  #5  
Old 08-21-2007, 08:57 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I'm right in it being due to SELECT queries; they retrieve information previously stored in your database - ie: posts, users, statistics, etc.
Reply With Quote
  #6  
Old 08-21-2007, 08:59 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GoHorns123 View Post
Our board isn't busy at all. Maybe 9 people post there, and we've never seen that error before. That's why I was confused to why we got that error.

What exactly is select queries? Is that hits to the board?
Depends on how many people are connected as "user i"

select queries are queries which select (extract data from) the database. As opposed to insert queries (which insert data into the database)
Reply With Quote
  #7  
Old 08-21-2007, 09:00 PM
GoHorns123 GoHorns123 is offline
 
Join Date: Aug 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm, so someone was retrieving previously stored info from our database? There are only 2 of us that are supposed to be connected to user" i". Me or the other admin weren't doing that at the time we got that error. So that would mean we have someone else that can access our database, right?
Reply With Quote
  #8  
Old 08-21-2007, 09:02 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GoHorns123 View Post
Hmmm, so someone was retrieving previously stored info from our database? Me or the other admin weren't doing that at the time we got that error. So that would mean we have someone else that can access our database, right?
Almost all vb info lives in a db. if you view a forum, thread, post, user info, basically anything and everything, you are looking at data from the db.
Reply With Quote
  #9  
Old 08-21-2007, 09:13 PM
GoHorns123 GoHorns123 is offline
 
Join Date: Aug 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eikinskjaldi View Post
Almost all vb info lives in a db. if you view a forum, thread, post, user info, basically anything and everything, you are looking at data from the db.

I got that part. What I'm not understanding is why we would have gotten that error. Even when our board was big we never got a database error like that. Now, only a few people post there and it isn't busy at all. I'm just wondering if our ex admin that flipped out on us was running inquiries and that's why we got that error. Only one person was on the board at the time it went down, and we shouldn't have reached "max_questions.

See what I'm saying?

And you have to excuse me if I'm asking stupid questions or not understanding , I'm just learning about this stuff.

I don't know if it matters but this was with the database error. It has a IP number with it, but I have no idea what that means. I'm guessing it means it was a person trying to get onto the board when we were down.

"Database error in vBulletin 3.6.4:

Invalid SQL:

SELECT *
FROM session
WHERE userid = 0

AND host = '74.6.25.203'
AND idhash = '67264e443604f5f10d3bd6750ed99119'
LIMIT 1;"
Reply With Quote
  #10  
Old 08-21-2007, 11:46 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GoHorns123 View Post
I got that part. What I'm not understanding is why we would have gotten that error. Even when our board was big we never got a database error like that. Now, only a few people post there and it isn't busy at all. I'm just wondering if our ex admin that flipped out on us was running inquiries and that's why we got that error.
It is possible. Either that or there is some really poor/inefficient code in your system that is making a lot of db calls.

Run the board in debug mode and have a look at how many queries your pages generate.

As for the error, was there more to the message? some indication of what the invalid sql was or perhaps an error message?
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 03:04 AM.


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.06347 seconds
  • Memory Usage 2,255KB
  • 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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete