Rechercher dans le manuel MySQL
10.11 Setting the Error Message Language
By default, mysqld produces error messages in English, but they can be displayed instead in any of several other languages: Czech, Danish, Dutch, Estonian, French, German, Greek, Hungarian, Italian, Japanese, Korean, Norwegian, Norwegian-ny, Polish, Portuguese, Romanian, Russian, Slovak, Spanish, or Swedish. This applies to messages the server writes to the error log and sends to clients.
To select the language in which the server writes error messages, follow the instructions in this section. For information about changing the character set for error messages (rather than the language), see Section 10.6, “Error Message Character Set”. For general information about configuring error logging, see Section 5.4.2, “The Error Log”.
The server searches for the error message file using these rules:
It looks for the file in a directory constructed from two system variable values,
lc_messages_dir
andlc_messages
, with the latter converted to a language name. Suppose that you start the server using this command:mysqld --lc_messages_dir=/usr/share/mysql --lc_messages=fr_FR
In this case, mysqld maps the locale
fr_FR
to the languagefrench
and looks for the error file in the/usr/share/mysql/french
directory.By default, the language files are located in the
share/mysql/
directory under the MySQL base directory.LANGUAGE
If the message file cannot be found in the directory constructed as just described, the server ignores the
lc_messages
value and uses only thelc_messages_dir
value as the location in which to look.If the server cannot find the configured message file, it writes a message to the error log to indicate the problem and defaults to built-in English messages.
The lc_messages_dir
system
variable can be set only at server startup and has only a global
read-only value at runtime.
lc_messages
can be set at server
startup and has global and session values that can be modified at
runtime. Thus, the error message language can be changed while the
server is running, and each client can have its own error message
language by setting its session
lc_messages
value to the desired
locale name. For example, if the server is using the
fr_FR
locale for error messages, a client can
execute this statement to receive error messages in English:
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-error-message-language.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.