I installed a new CentOS server (6.4 x86_64), and when I try to log into phpmyadmin, there's an ERROR:
Can't initialize character set utf-8 (path: /usr/local/mysql/share/charsets/)
BTW: Everytime I logged into system, I got:
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
and I cannot find locale-gen on my system, the latest version of glibc is installed.
# rpm -qa | grep glibc
glibc-devel-2.12-1.107.el6.x86_64
glibc-2.12-1.107.el6.x86_64
glibc-headers-2.12-1.107.el6.x86_64
glibc-common-2.12-1.107.el6.x86_64
and here's the output of locale command:
# locale
LANG=en_US
LC_CTYPE="en_US.utf-8"
LC_NUMERIC="en_US.utf-8"
LC_TIME="en_US.utf-8"
LC_COLLATE="en_US.utf-8"
LC_MONETARY="en_US.utf-8"
LC_MESSAGES="en_US.utf-8"
LC_PAPER="en_US.utf-8"
LC_NAME="en_US.utf-8"
LC_ADDRESS="en_US.utf-8"
LC_TELEPHONE="en_US.utf-8"
LC_MEASUREMENT="en_US.utf-8"
LC_IDENTIFICATION="en_US.utf-8"
LC_ALL=en_US.utf-8
How to resolve those two problems?(or maybe they are the same problem?)