locale error starts to pop up when I restart the mysql server - Debian Linux distribution
/etc/init.d/mysql stop
/etc/init.d/mysql start
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_IN"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C")
To resolve this:
debian:~# export LANGUAGE=en_US.UTF-8
debian:~# export LANG=en_US.UTF-8
debian:~# export LC_ALL=en_US.UTF-8
debian:~# locale-gen en_US.UTF-8
Generating locales (this might take a while)...
en_IN.UTF-8... done
Generation complete.
debian:~# apt-get install locales
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libc6 libc6-i686 tzdata
Suggested packages:
glibc-doc
The following packages will be upgraded:
libc6 libc6-i686 locales tzdata
4 upgraded, 0 newly installed, 0 to remove and 172 not upgraded.
Need to get 10.9MB of archives.
After unpacking 1909kB of additional disk space will be used.
Do you want to continue [Y/n]? y
After completion:
debian:~# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US.UTF-8",
LC_ALL = "en_US.UTF-8",
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
debian:~# /etc/init.d/mysql stop
Stopping MySQL database server: mysqld.
debian:~# /etc/init.d/mysql start
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
Fixed.
/etc/init.d/mysql stop
/etc/init.d/mysql start
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_IN"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C")
To resolve this:
debian:~# export LANGUAGE=en_US.UTF-8
debian:~# export LANG=en_US.UTF-8
debian:~# export LC_ALL=en_US.UTF-8
debian:~# locale-gen en_US.UTF-8
Generating locales (this might take a while)...
en_IN.UTF-8... done
Generation complete.
debian:~# apt-get install locales
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libc6 libc6-i686 tzdata
Suggested packages:
glibc-doc
The following packages will be upgraded:
libc6 libc6-i686 locales tzdata
4 upgraded, 0 newly installed, 0 to remove and 172 not upgraded.
Need to get 10.9MB of archives.
After unpacking 1909kB of additional disk space will be used.
Do you want to continue [Y/n]? y
After completion:
debian:~# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US.UTF-8",
LC_ALL = "en_US.UTF-8",
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
debian:~# /etc/init.d/mysql stop
Stopping MySQL database server: mysqld.
debian:~# /etc/init.d/mysql start
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
Fixed.