/usr/bin/mysql: Unknown OS character set ‘ISO-8859-15’. /usr/bin/mysql: Switching to the default character set ‘latin1’.

While restarting mysql on Debian Wheezy, I have this serie of error messages continuously on the standard error output :

/usr/bin/mysql: Unknown OS character set ‘ISO-8859-15’.
/usr/bin/mysql: Switching to the default character set ‘latin1’.

As explained here and there , mysql is unable to understand this particular locale. For instance, es_ES@euro is just an alias of es_ES@ISO-8859-15. Any @euro based character set can not be interpreted directly by MySQL. The @euro part needs to be replaced with ISO-8859-15. To prevent new error messages after restarting the mysql service, the LANG variable must be set with the value es_ES.ISO-8859-15  in the mysql init script.

At the beginning of this script, add this line :

export LANG=es_ES.ISO-8859-15

And restart the mysql service :

root@localhost:~#service mysql restart

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s