, [Mariadb]Mariadb utf8mb4

반응형

테스트 환경 ☞ Synology Nas 1219+ DSM 6.2.3-25426 update 2 버전 ☜

[Docker] Synology Nas Mariadb 설치

[Mariadb] Database / User 생성 삭제 권한

utf8mb4

MySQL의 경우 5.5.3버전 >= utf8mb4가 지원

MariaDB의 /etc/mysql/conf.d/utf8mb4.cnf 생성

character-set-client-handshake 옵션은 클라이언트의 문자셋을 무시하고 서버쪽 문자셋을 이용

[client]
default-character-set = utf8mb4

[mysql]
default-character-set = utf8mb4

[mysqld]
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
skip-character-set-client-handshake = FALSE

[mysqldump]
default-character-set = utf8mb4

show variables like 'c%';

+----------------------------------+----------------------------+
| Variable_name                    | Value                      |
+----------------------------------+----------------------------+
| character_set_client             | utf8mb4                    |
| character_set_connection         | utf8mb4                    |
| character_set_database           | utf8mb4                    |
| character_set_filesystem         | binary                     |
| character_set_results            | utf8mb4                    |
| character_set_server             | utf8mb4                    |
| character_set_system             | utf8                       |
| character_sets_dir               | /usr/share/mysql/charsets/ |
| check_constraint_checks          | ON                         |
| collation_connection             | utf8mb4_unicode_ci         |
| collation_database               | utf8mb4_unicode_ci         |
| collation_server                 | utf8mb4_unicode_ci         |
| column_compression_threshold     | 100                        |
| column_compression_zlib_level    | 6                          |
| column_compression_zlib_strategy | DEFAULT_STRATEGY           |
| column_compression_zlib_wrap     | OFF                        |
| completion_type                  | NO_CHAIN                   |
| concurrent_insert                | AUTO                       |
| connect_timeout                  | 10                         |
| core_file                        | OFF                        |
+----------------------------------+----------------------------+
728x90

'TIP&TECH > Web' 카테고리의 다른 글

[Bootstrap]Modal view  (0) 2020.11.10
[Mariadb] Database / User 생성 삭제 권한  (0) 2020.11.07
[Bootstrap]Card  (0) 2020.11.04
[Bootstrap]Button  (0) 2020.11.03
RGB <-> #COLOR  (0) 2020.10.30

이 글을 공유합시다

facebook twitter kakaoTalk kakaostory naver band