Setting up MediaWiki 1.8-svn with MySQL 5.0.22 on Windows server 2003 fails creating
tables in the database. Return value:
"#1089 - Incorrect sub part key; the used key part isn't a string, the used length is
longer than the key part, or the storage engine doesn't support unique sub keys"
I traced this back to the creation of the table 'ipblocks', and more specifically the
following line in phase3/maintenance/mysql5/tables.sql:
UNIQUE INDEX ipb_address (ipb_address(255), ipb_user, ipb_auto, ipb_anon_only),
Changing it to the following creates the table and all /appears/ to be fine. As I'm no
expert on this matter, I have no idea of the consequences of this change.
UNIQUE INDEX ipb_address (ipb_address, ipb_user, ipb_auto, ipb_anon_only),
This change was introduced on 2006-07-10 in SVN version 15482 by tstarling.
SVN diff attached.
Version: 1.8.x
Severity: critical