Last modified: 2010-05-15 15:56:54 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 5489 - Key too long for the 'job' table during install/update when using UTF-8
Key too long for the 'job' table during install/update when using UTF-8
Status: RESOLVED DUPLICATE of bug 4445
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
PC Linux
: Normal critical (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-04-07 09:27 UTC by Mormegil
Modified: 2010-05-15 15:56 UTC (History)
0 users

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


Description Mormegil 2006-04-07 09:27:35 UTC
When using so-called Experimental MySQL 4.1/5.0 UTF-8 support, the creation or
update of the job table fails with the "Specified key was too long; max key
length is 1024 bytes" error message.

I have fixed that locally by explicitly stating the character set to be latin1
for both varchar columns (they should probably never contain some fancy Unicode
text, anyway):

job_cmd varchar(255) CHARACTER SET latin1 NOT NULL default '',
Comment 1 Norman Markgraf 2006-04-28 13:26:24 UTC
Got a very similar error message:

Creating job table...Query "CREATE TABLE `job` (
 job_id int(9) unsigned NOT NULL auto_increment,
 job_cmd varchar(255) NOT NULL default '',
 job_namespace int NOT NULL,
 job_title varchar(255) binary NOT NULL,
 job_params blob NOT NULL default '',
 PRIMARY KEY job_id (job_id),
 KEY (job_cmd, job_namespace, job_title)
 ) TYPE=InnoDB
" failed with error code "Specified key was too long. Max key length is 500

tried it with the "hot fix" 'CHARACTER SET latin1', but it doen't work for me.

PHP 5.1.2 - MySQL 4.0.18 - MediaWiki 1.5.7 -> 1.6.3
Comment 2 Norman Markgraf 2006-04-28 13:37:48 UTC

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

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