Bug #78456 Use the locale to set lc_messages
Submitted: 16 Sep 2015 14:11 Modified: 11 May 2017 10:49
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Errors Severity:S4 (Feature request)
Version:5.7.8 OS:Any
Assigned to: CPU Architecture:Any
Tags: l10n, Localization

[16 Sep 2015 14:11] Daniël van Eeden
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?)
[11 May 2017 10:49] Daniël van Eeden
Duplicate of:
Bug #74750 	System locale ignored