Rechercher dans le manuel MySQL
10.13.2 Choosing a Collation ID
Each collation must have a unique ID. To add a collation, you must choose an ID value that is not currently used. MySQL supports two-byte collation IDs. The range of IDs from 1024 to 2047 is reserved for user-defined collations. The collation ID that you choose will appear in these contexts:
The
ID
column of theINFORMATION_SCHEMA.COLLATIONS
table.The
Id
column ofSHOW COLLATION
output.The
charsetnr
member of theMYSQL_FIELD
C API data structure.The
number
member of theMY_CHARSET_INFO
data structure returned by themysql_get_character_set_info()
C API function.
To determine the largest currently used ID, issue the following statement:
- +---------+
- +---------+
- | 210 |
- +---------+
To display a list of all currently used IDs, issue this statement:
- +-----+
- | ID |
- +-----+
- | 1 |
- | 2 |
- | ... |
- | 52 |
- | 53 |
- | 57 |
- | 58 |
- | ... |
- | 98 |
- | 99 |
- | 128 |
- | 129 |
- | ... |
- | 210 |
- +-----+
Before upgrading, you should save the configuration files that you change. If you upgrade in place, the process will replace the your modified files.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-adding-collation-choosing-id.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.