Last modified: 2010-05-15 15:42:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10353, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8353 - Install on mysql v5 with Experimental MySQL 4.1/5.0 UTF-8
Install on mysql v5 with Experimental MySQL 4.1/5.0 UTF-8
Status: RESOLVED DUPLICATE of bug 6737
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.8.x
PC FreeBSD
: Low trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-22 07:34 UTC by Sergey Homenkow
Modified: 2010-05-15 15:42 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sergey Homenkow 2006-12-22 07:34:04 UTC
I install MediaWiki v1.8.2 on MySQL v5.0.27 with 
option "Experimental MySQL 4.1/5.0 UTF-8" enabled and have error:

ERROR 1089 (HY000): 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

on query:
CREATE TABLE ipblocks (
...
  ipb_address varchar(40) binary NOT NULL default '',
...
  UNIQUE INDEX ipb_address (ipb_address(255), ipb_user, ipb_auto, ipb_anon_only),
...
)

Fix:
change maintenance/mysql5/tables.sql from
  UNIQUE INDEX ipb_address (ipb_address(255), ipb_user, ipb_auto, ipb_anon_only),
to
  UNIQUE INDEX ipb_address (ipb_address(40), ipb_user, ipb_auto, ipb_anon_only),
Comment 1 Brion Vibber 2006-12-22 17:56:22 UTC

*** This bug has been marked as a duplicate of 6737 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links