Hi! I’m clsung

Hi! I’m clsung

clsung’s blog site, or you can call me AlanSung

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 :)

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • funp
  • Haohao
  • Hemidemi
  • Live
  • MisterWong
  • TwitThis
  • udn

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

噗浪:

分類

Flickr

    clsung. Get yours at bighugelabs.com/flickr

Blogroll

    馬的警總回來了
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan