10.15 Character Set Configuration

The MySQL server has a compiled-in default character set and collation. To change these defaults, use the '--character-set-server' and '--collation-server' options when you start the server. See note server-options::. The collation must be a legal collation for the default character set. To determine which collations are available for each character set, use the note 'SHOW COLLATION': show-collation. statement or query the 'INFORMATION_SCHEMA' *note 'COLLATIONS': information-schema-collations-table. table.

If you try to use a character set that is not compiled into your binary, you might run into the following problems:

You can force client programs to use specific character set as follows:

 [client]
 default-character-set=CHARSET_NAME

This is normally unnecessary. However, when 'character_set_system' differs from 'character_set_server' or 'character_set_client', and you input characters manually (as database object identifiers, column values, or both), these may be displayed incorrectly in output from the client or the output itself may be formatted incorrectly. In such cases, starting the mysql client with '--default-character-set=SYSTEM_CHARACTER_SET'--that is, setting the client character set to match the system character set--should fix the problem.

 File: manual.info.tmp, Node: locale-support, Prev: charset-configuration, Up: charset