Database error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bollie
    Senior Member
    • Jun 2006
    • 303
    • 4.2.x

    Database error

    Database error in vBulletin 3.6.5:
    Invalid SQL:
    INSERT IGNORE INTO postindex
    (wordid, postid, score, intitle)
    SELECT DISTINCT wordid, 33852, CASE title WHEN 'fgfdgdfg' THEN 1 WHEN 'dfgdfgdfgdfg' THEN 1 ELSE 1 END, CASE title WHEN 'fgfdgdfg' THEN 1 WHEN 'dfgdfgdfgdfg' THEN 0 ELSE 0 END
    FROM word
    WHERE title IN ('test','dfgdfgdfgdfg');
    MySQL Error : Table 'xxxxxxxxx.postindex' doesn't exist
    Error Number : 1146
    Date : Friday, March 23rd 2007 @ 11:07:15 PM
    Script : http://www.xxxxxxxxxxx/forum/newthre...postthread&f=2
    Referrer : http://www.xxxxxxxxxx/forum/newthrea...=newthread&f=2
    IP Address : xxxxxxxxxx
    Username : xxxxxxxxx
    Classname : vB_Database
    Last edited by bollie; Fri 23 Mar '07, 10:09pm.
    Dutch Online Computer hulp - www.pctuts.be
  • peterska2
    Senior Member
    • Oct 2003
    • 8869
    • 3.7.x

    #2
    In your AdminCP > Maintenance > Repair/Optimize Tables look for a table named postindex. If this exists, run repair and optimize a few times until the error clears. If it does not exist then you will need to recreate the table.

    Comment

    • bollie
      Senior Member
      • Jun 2006
      • 303
      • 4.2.x

      #3
      Originally posted by Kerry-Anne
      In your AdminCP > Maintenance > Repair/Optimize Tables look for a table named postindex. If this exists, run repair and optimize a few times until the error clears. If it does not exist then you will need to recreate the table.
      postindex not exist help
      Dutch Online Computer hulp - www.pctuts.be

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        Run this query to create that table:

        CREATE TABLE postindex (
        wordid INT UNSIGNED NOT NULL DEFAULT '0',
        postid INT UNSIGNED NOT NULL DEFAULT '0',
        intitle SMALLINT UNSIGNED NOT NULL DEFAULT '0',
        score SMALLINT UNSIGNED NOT NULL DEFAULT '0',
        UNIQUE KEY wordid (wordid, postid)
        );


        Then if you are using the default vB search option, rebuild the search index.

        Admin CP -> Maintenance -> Update Counters -> Rebuild Search Index
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • bollie
          Senior Member
          • Jun 2006
          • 303
          • 4.2.x

          #5
          Originally posted by Steve Machol
          Run this query to create that table:

          CREATE TABLE postindex (
          wordid INT UNSIGNED NOT NULL DEFAULT '0',
          postid INT UNSIGNED NOT NULL DEFAULT '0',
          intitle SMALLINT UNSIGNED NOT NULL DEFAULT '0',
          score SMALLINT UNSIGNED NOT NULL DEFAULT '0',
          UNIQUE KEY wordid (wordid, postid)
          );

          Then if you are using the default vB search option, rebuild the search index.

          Admin CP -> Maintenance -> Update Counters -> Rebuild Search Index
          Thx Steve
          Dutch Online Computer hulp - www.pctuts.be

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...