You can select which language the server uses for error messages using the instructions in this
section.
To start
mysqld
option. The option value can be a language name or the full path to the error message file. For
L
example:
shell>
mysqld --language=swedish
Or:
shell>
mysqld --language=/usr/local/share/swedish
The language name should be specified in lowercase.
By default, the language files are located in the
base directory.
For information about changing the character set for error messages (rather than the language), see
Section 10.1.6, "Character Set for Error
You can change the content of the error messages produced by the server using the instructions in
the MySQL Internals manual, available at
content of error messages, remember to repeat your changes after each upgrade to a newer version of
MySQL.
10.3. Adding a Character Set
This section discusses the procedure for adding a character set to MySQL. The proper procedure
depends on whether the character set is simple or complex:
• If the character set does not need special string collating routines for sorting and does not need
multi-byte character support, it is simple.
• If the character set needs either of those features, it is complex.
For example,
character sets.
To use the following instructions, you must have a MySQL source distribution. In the instructions,
represents the name of the character set that you want to add.
MYSET
1. Add a
<charset>
existing contents in the file as a guide to adding new contents. A partial listing for the
<charset>
<charset name="latin1">
<family>Western</family>
<description>cp1252 West European</description>
...
<collation name="latin1_swedish_ci" id="8" order="Finnish, Swedish">
<flag>primary</flag>
<flag>compiled</flag>
</collation>
<collation name="latin1_danish_ci" id="15" order="Danish"/>
...
<collation name="latin1_bin" id="47" order="Binary">
<flag>binary</flag>
<flag>compiled</flag>
</collation>
...
</charset>
The
<charset>
least a binary collation and a default (primary) collation. The default collation is often named using
Adding a Character Set
with a particular language for error messages, use the
and
are simple character sets, whereas
greek
swe7
element for
MYSET
element follows:
element must list all the collations for the character set. These must include at
share/mysql/LANGUAGE
Messages".
MySQL Internals: Error
to the
sql/share/charsets/Index.xml
805
[410]
--language
directory under the MySQL
Messages. If you do change the
and
are complex
big5
czech
file. Use the
or
-
latin1
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers