I have some problems using diffrent charsets in mysql-4.1.14. After some research I found that my `character-sets-dir' in /etc/mysql/my.cnf is incorrect - value should be `/usr/share/mysql/charsets' but it's `utf8' (or to `latin1' if `utf8' USE flag isn't set). More info here - http://dev.mysql.com/doc/refman/4.1/en/problems-with-character-sets.html
The reported issue applies to mysql-4.1.18-r60 too. There is an incorrect value of 'character-sets-dir', thus changing 'default-character-set' to anything except built-in 'latin1' and 'utf8' values makes mysql client to produce this warning and exit: mysql: Character set 'koi8r' is not a compiled character set and is not specified in the 'utf8/Index.xml' file Removing 'character-sets-dir' definition from my.cnf solves this. Good people, fix the default my.cnf file please.
The my.cnf's were fixed, they now have the correct path in them. Best regards, CHTEKK.