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

From RVM Wiki
Jump to navigation Jump to search
m New page: 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...
 
mNo edit summary
 
Line 12: Line 12:
==Riferimenti==
==Riferimenti==
*[http://bugs.mysql.com/bug.php?id=4541 MySQL Bugs: #4541: "Specified key was too long; max key length is 1000 bytes" with utf8]
*[http://bugs.mysql.com/bug.php?id=4541 MySQL Bugs: #4541: "Specified key was too long; max key length is 1000 bytes" with utf8]
*[http://www.ipbwiki.com/Media_Wiki:Specified_key_was_too_long%3B_max_key_length_is_1024_bytes Media Wiki:Specified key was too long; max key length is 1024 bytes - IpbWiki]

Latest revision as of 10:49, 16 June 2008

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