### Eclipse Workspace Patch 1.0
#P 18stable
Index: lib/setuplib.php
===================================================================
RCS file: /cvsroot/moodle/moodle/lib/setuplib.php,v
retrieving revision 1.19.2.4
diff -u -r1.19.2.4 setuplib.php
--- lib/setuplib.php	28 Mar 2007 17:13:17 -0000	1.19.2.4
+++ lib/setuplib.php	12 Nov 2007 03:27:45 -0000
@@ -165,7 +165,7 @@
 
     switch ($dbfamily) {
         case 'mysql':
-            $rs = $db->Execute("SHOW VARIABLES LIKE 'character_set_database'");
+            $rs = $db->Execute("SHOW LOCAL VARIABLES LIKE 'character_set_database'");
             if ($rs && $rs->RecordCount() > 0) {
                 $records = $rs->GetAssoc(true);
                 $encoding = $records['character_set_database']['Value'];
