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:

To determine the largest currently used ID, issue the following statement:

  1. mysql> SELECT MAX(ID) FROM INFORMATION_SCHEMA.COLLATIONS;
  2. +---------+
  3. | MAX(ID) |
  4. +---------+
  5. |     210 |
  6. +---------+

To display a list of all currently used IDs, issue this statement:

  1. mysql> SELECT ID FROM INFORMATION_SCHEMA.COLLATIONS ORDER BY ID;
  2. +-----+
  3. | ID  |
  4. +-----+
  5. |   1 |
  6. |   2 |
  7. | ... |
  8. |  52 |
  9. |  53 |
  10. |  57 |
  11. |  58 |
  12. | ... |
  13. |  98 |
  14. |  99 |
  15. | 128 |
  16. | 129 |
  17. | ... |
  18. | 210 |
  19. +-----+
Warning

Before upgrading, you should save the configuration files that you change. If you upgrade in place, the process will replace the your modified files.


Find a PHP function

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

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

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.

Contents Haut