Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.8.2
-
Component/s: Database SQL/XMLDB
-
Labels:None
-
Environment:MySQL 5.0, PHP 5.1.6, Linux 2.6.22, Apache 1.3.37, HostMonster shared hosting
-
Database:MySQL
-
Affected Branches:MOODLE_18_STABLE
-
Fixed Branches:MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
Description
HostMonster's shared hosting MySQL database server does not change the GLOBAL variable for character_set_database relative to the current default database (Moodle's DB), but does change the LOCAL variable.
grep "SHOW VARIABLES LIKE 'character_set_database'" (should return three locations)
Change "SHOW VARIABLES" to "SHOW LOCAL VARIABLES"
Issue Links
| This issue will be resolved by: | ||||
| MDL-11743 | install.php does not recognize UTF8 unicode setup and stops under DB Checker |
|
|
|
Well,
I don't understand the GLOBAL / LOCAL (SESSION) distinction for the "character_set_database" setting.
Such setting isn't client/server dependent AFAIK, but the default encoding of the database where Moodle connects to. So, if one DB has 'utf8' as default encoding, the "character_set_database" should return 'utf8', no matter if asked GLOBALLY or LOCALLY.
Or, were am I wrong? How can we have different "character_set_database" settings depending of the GLOBAL/LOCAL thing?
Ciao