Errore "Specified key was too long; max key length is 1024 bytes" durante un upgrade di Mediawiki

From RVM Wiki
Revision as of 10:49, 16 June 2008 by Gabriele.vivinetto (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Se durante l'upgrade di Mediawiki il comando

php update.php

termina con l'errore:

Specified key was too long; max key length is 1024 bytes

Significa che le tabelle del database sono in formato UTF8, ed in particolare c'è un atabella con motore MyIsam.

PEr risolvere il problema, identificare la tabella sulla quale c'è l'errore (esempio la $TABLEPREFIX_categorylinks) e con phpmyadmin cambiare l'engine in InnoDB,:

 ALTER TABLE `rvmwiki_categorylinks`  COMMENT = 'ex MyIsam' ENGINE = InnoDB 

Riferimenti