SQL: Difference between revisions

From HaFrWiki42
Jump to navigation Jump to search
Created page with "== Category == There are several options: * SQL Wiki Category statements for solving the Category Redirect bug. == SearchIndex == The sea..."
 
Line 22: Line 22:


[[Category:Index]]
[[Category:Index]]
[[Category:Wiki]]
[[Category:MediaWiki]]

Revision as of 10:20, 7 December 2012

Category

There are several options:

SearchIndex

The searchindex file can be truncated. To solve this problem do:

  • Drop the table searchindex
  • create a new searchindex by:
CREATE TABLE /*$wgDBprefix*/searchindex (
-- Key to page_id
si_page int unsigned NOT NULL,
-- Munged version of title
si_title varchar(255) NOT NULL default '',
-- Munged version of body text
si_text mediumtext NOT NULL,
UNIQUE KEY (si_page),
FULLTEXT si_title (si_title),
FULLTEXT si_text (si_text)
) TYPE=MyISAM;