Last modified: 2010-05-15 15:56:55 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 12531 - Specified key was too long during installation of version 1.6.10
Specified key was too long during installation of version 1.6.10
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.6.x
All Linux
: High critical (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy, utf8
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-06 14:31 UTC by DavidSpencer.ca
Modified: 2010-05-15 15:56 UTC (History)
2 users (show)

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


Attachments

Description DavidSpencer.ca 2008-01-06 14:31:02 UTC
January 6, 2008

I have done a clean install on my wiki.

I was running version 1.5.8. I deleted all of it.

I installed version 1.6.10.

How do I fix this error?

" failed with error code "Specified key was too long; max key length is 1024 bytes (localhost)"

I appreciate your help. Thanks.

David



The following is the error message received while doing the config setup.


* There are already MediaWiki tables in this database. Checking if updates are needed...
...hitcounter table already exists.
...querycache table already exists.
...objectcache table already exists.
...categorylinks table already exists.
...logging table already exists.
...validate table already exists.
...user_newtalk table already exists.
...transcache table already exists.
...trackbacks table already exists.
...externallinks table already exists.
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 1024 bytes (localhost)".
Comment 1 JeLuF 2008-01-06 14:45:30 UTC
Which MySQL version are you using?
Which PHP version are you using?
Comment 2 DavidSpencer.ca 2008-01-06 17:28:52 UTC
Thanks for your interest.

We are running..

PHP: 4.3.9 (apache2handler)
MySQL: 4.1.20 

David
Comment 3 Brion Vibber 2008-01-07 19:08:54 UTC
1.6 branch is long obsolete; current versions use a smaller job_cmd field, 60 characters, which will work.

If at all possible, upgrade to a modern version of PHP and MediaWiki.

If that's not possible, there are two easy fixes:

1) Change the default collation on MySQL to Latin-1 from UTF-8. (The UTF-8 mode in MySQL doesn't work properly and makes the indexes bigger.)

2) Change maintenance/tables.sql to use a smaller size for this field and any other field that is too big.

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


Navigation
Links