From f9ff37c15360f227baff779d784fddd8803c56d1 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Wed, 9 Nov 2011 03:25:15 +0000 Subject: [PATCH] fix bug #29102: Upgrade fails "Unknown character set: 'mysql4'" by replacing "mysql4" with "binary" Trivial enough to be backported, I think. --- includes/db/DatabaseMysql.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/db/DatabaseMysql.php b/includes/db/DatabaseMysql.php index 8d1a8110ac..734cdae3d9 100644 --- a/includes/db/DatabaseMysql.php +++ b/includes/db/DatabaseMysql.php @@ -799,6 +799,7 @@ class DatabaseMysql extends DatabaseBase { protected function getDefaultSchemaVars() { $vars = parent::getDefaultSchemaVars(); $vars['wgDBTableOptions'] = str_replace( 'TYPE', 'ENGINE', $GLOBALS['wgDBTableOptions'] ); + $vars['wgDBTableOptions'] = str_replace( 'CHARSET=mysql4', 'CHARSET=binary', $GLOBALS['wgDBTableOptions'] ); return $vars; } -- 2.20.1