Description:
mysql, mysqldump etc don't respect the locale of the user
How to repeat:
$ export LANG=nl_NL.utf8
$ export LC_ALL=nl_NL.UTF-8
$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.8-rc-log MySQL Community Server (GPL)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show variables like 'lc%';
+-----------------+-------------------------+
| Variable_name | Value |
+-----------------+-------------------------+
| lc_messages | en_US |
| lc_messages_dir | /opt/mysql/5.7.8/share/ |
| lc_time_names | en_US |
+-----------------+-------------------------+
3 rows in set (0,00 sec)
mysql> SET lc_messages='nl_NL';
Query OK, 0 rows affected (0,01 sec)
Suggested fix:
Please use the locale of the user to set lc_messages (and lc_time_names?)