Hi! I’m clsung

Hi! I’m clsung

clsung’s blog site

Hi! I’m clsung RSS Feed
 
 
 
 

mediawiki upgrade to 1.6.3

It’s been a long time that wiki.newzilla.org didn’t upgraded to lastest mediawiki version.
While I upgrade from 1.5.5 to 1.6.3, I encounter the problem:

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


This is a known bug, as we can see in bug 2907, so I modified maintenance/archives/patch-job.sql, added the following lines:

DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci

after the 『) TYPE=xxxxDB』 line.
solved :)

3 Responses to “mediawiki upgrade to 1.6.3”

  1. 1
    Lars Grobe:

    Hi,

    on my system, the max key size is 500. I applied your patch (with mediawiki 1.6.5), and than set both job_title and job_cmd to 215 instead of 255. The update script worked like that, but I have no idea if I broke the database now…

    CU Lars.

  2. 2
    clsung:

    Well, I don’t think you broke DB, or say, even you really broken database, we can’t tell in few mins :)

  3. 3
    william quartz:

    If you are working on a Unix like system, you can untar the new MediaWiki package at some place, copy your old LocalSettings.php file into this directory and set a symbolic link to the directory.

Leave a Reply

噗浪:

  • clsung 說 今天 2940, 看來昨天有量錯, 因為前天 2830, 昨天竟然報 2760 .... 20 小時 之前
  • clsung 說 嘖嘖, 這該說是德政還是政績呢? 2010-03-17
  • clsung 說 今晚 LS Time 有「猛鬼佛跳牆」 2010-03-17

分類

Flickr

    clsung. Get yours at bighugelabs.com/flickr

Blogroll

    馬的警總回來了