1
show variables like 'character_sets_dir%';
3
character_sets_dir MYSQL_TEST_DIR/std_data/
5
select * from information_schema.collations where id>256 order by id;
6
COLLATION_NAME CHARACTER_SET_NAME ID IS_DEFAULT IS_COMPILED SORTLEN
7
utf8mb4_test_ci utf8mb4 326 8
8
utf16_test_ci utf16 327 8
9
utf8mb4_test_400_ci utf8mb4 328 8
10
utf8_bengali_standard_ci utf8 336 8
11
utf8_bengali_traditional_ci utf8 337 8
12
utf8_phone_ci utf8 352 8
13
utf8_test_ci utf8 353 8
14
utf8_5624_1 utf8 354 8
15
utf8_5624_2 utf8 355 8
16
utf8_5624_3 utf8 356 8
17
utf8_5624_4 utf8 357 8
18
ucs2_test_ci ucs2 358 8
20
ucs2_5624_1 ucs2 360 8
21
utf8_5624_5 utf8 368 8
22
utf32_test_ci utf32 391 8
23
utf8_maxuserid_ci utf8 2047 8
24
show collation like '%test%';
25
Collation Charset Id Default Compiled Sortlen
26
latin1_test latin1 99 Yes 1
27
utf8_test_ci utf8 353 8
28
ucs2_test_ci ucs2 358 8
29
utf8mb4_test_ci utf8mb4 326 8
30
utf8mb4_test_400_ci utf8mb4 328 8
31
utf16_test_ci utf16 327 8
32
utf32_test_ci utf32 391 8
33
show collation like 'ucs2_vn_ci';
34
Collation Charset Id Default Compiled Sortlen
36
create table 2byte_collation (c1 char(1) character set ucs2 collate ucs2_vn_ci)
38
insert into 2byte_collation values (0x0061);
39
set @@character_set_results=NULL;
40
select * from 2byte_collation;
41
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
42
def test 2byte_collation 2byte_collation c1 c1 254 2 2 Y 0 0 359