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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-25-2010, 08:56 AM
daydie's Avatar
daydie daydie is offline
 
Join Date: Oct 2007
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default SQL error after repairing table! help please!

hey guys, i got this error when i tryed to repair all the tables from admincp....


Code:
Database error in vBulletin 3.8.0:

Invalid SQL:

		SELECT 
			IF(votenum >= 1, votenum, 0) AS votenum,
			IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
		 post.pagetext AS preview,
			thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
			thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
			thread.prefixid, thread.taglist, hiddencount, deletedcount
			, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
			, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
			
			, threadredirect.expires
			, post_user.displaygroupid AS post_user_displaygid, post_user.usergroupid AS post_user_usergid, last_post_user.displaygroupid AS last_post_user_displaygid, last_post_user.usergroupid AS last_post_user_usergid
		FROM thread AS thread
			LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
			 LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)
			
			LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
			
			LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
			LEFT JOIN user AS last_post_user ON (thread.lastposter = last_post_user.username)
LEFT JOIN user AS post_user ON (thread.postuserid = post_user.userid)
		WHERE thread.threadid IN (0,529338,529336,529333,529332,529331,529325,529324,529314,529313,529311,529309,529304,529301,529294,529286,529278,529274,529271,529267,529265,8888) 
		ORDER BY sticky DESC, lastpost DESC;

MySQL Error   : Table './daydiee/post' is marked as crashed and last (automatic?) repair failed
Error Number  : 144
Request Date  : Tuesday, May 25th 2010 @ 03:51:48 AM
Error Date    : Tuesday, May 25th 2010 @ 03:51:49 AM
Script        : http://daydie.co.uk/download-games-f365/
Referrer      : http://daydie.co.uk/
IP Address    : xxx-xxx-xxx-xxx
Username      : daydie
Classname     : vB_Database
MySQL Version : 5.0.91-log
in the post table it has 0 data in. is there any way i can get this working again. when i try view a thread or forum i get this SQL error.


please help

--------------- Added [DATE]1274781587[/DATE] at [TIME]1274781587[/TIME] ---------------

------------------------

i have just tryed re-creating the post databse via install but had no luck, this is what i got back:

Code:
Step 3) Creating Tables
Resetting database...

    * Removing post table

    * Creating access table
      
Quote:
Database Error Database error The database has encountered a problem. Please try the following: o Load the page again by clicking the Refresh button in your web browser. o Open the daydie.co.uk home page, then try to open another page. o Click the Back button to try another link. The daydie.co.uk forum technical staff have been notified of the error, though you may contact them if the problem persists. We apologise for any inconvenience. Database error in vBulletin : Invalid SQL: CREATE TABLE access ( userid INT UNSIGNED NOT NULL DEFAULT '0', forumid SMALLINT UNSIGNED NOT NULL DEFAULT '0', accessmask SMALLINT UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY userid (userid, forumid) ); MySQL Error : Table 'access' already exists Error Number : 1050 Request Date : Tuesday, May 25th 2010 @ 03:58:35 AM Error Date : Tuesday, May 25th 2010 @ 03:58:36 AM Script : http://daydie.co.uk/install/install.php?do= Referrer : http://daydie.co.uk/install/install.php?step=3&emptydb=true IP Address : 81.105.142.155 Username : Classname : vB_Database MySQL Version : 5.0.91-log
i think it was trying to make access table, even tho i only ticked post table to be deleted and re-created.

--------------- Added [DATE]1274782237[/DATE] at [TIME]1274782237[/TIME] ---------------

i deleted the database, can anybody please help me re-build the basic of the post table. as the install cant do it as it tryed to creat all databases and cant becuase the old ones are still there.
Reply With Quote
 


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:34 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.06660 seconds
  • Memory Usage 2,359KB
  • 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
  • (2)bbcode_code
  • (1)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)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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