Last modified: 2010-05-15 15:26:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1655 - Installation fails with mySQL error 1071 while creating table categorylinks
Installation fails with mySQL error 1071 while creating table categorylinks
Status: RESOLVED DUPLICATE of bug 1322
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.3.x
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-08 05:52 UTC by Carlton Brown
Modified: 2010-05-15 15:26 UTC (History)
0 users

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


Attachments

Description Carlton Brown 2005-03-08 05:52:12 UTC
Output from configuration script index.php:

Creating tables...Query "CREATE TABLE categorylinks ( cl_from int(8) unsigned NOT 
NULL default '0', cl_to varchar(255) binary NOT NULL default '', cl_sortkey varchar
(255) binary NOT NULL default '', cl_timestamp timestamp NOT NULL, UNIQUE KEY 
cl_from(cl_from,cl_to), KEY cl_sortkey(cl_to,cl_sortkey(128)), KEY cl_timestamp
(cl_to,cl_timestamp) )" failed with error code "Specified key was too long; max key 
length is 1024 bytes". 

More information:  mySQL version 4.1.9.  Reproduced error from mySQL command line.  
mySQL error is 1071.   For some reason mySQL is multiplying the specified column 
length by a factor of 3.   Thus, (128*3) + (255*3) = 1149 which is greater than the 
allowed 1024.  This can be seen by using the diagnostic command "show index from 
categorylinks" which shows the tripled lengths of of columns that have been 
included as substrings.

Workaround:   
changed this clause:
    KEY cl_sortkey(cl_to,cl_sortkey(128)) 
to this:
    KEY cl_sortkey(cl_to,cl_sortkey(86)) 

Install script now creates all tables successfully.

Suggestions:
Decrease the width of either the cl_sortkey key fields, or of the columns themselves
Identify what in mySQL is causing substring lengths in indices to be tripled in 
width.
Comment 1 Brion Vibber 2005-03-08 05:53:39 UTC

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

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


Navigation
Links