반응형
# DBMS character set change utf8 -> utf8mb4
alter database DB명 character set utf8mb4 collate utf8mb4_unicode_ci;
# Table character set change utf8 -> utf8mb4
alter table DB명.TABLE명 convert to character set utf8mb4 collate utf8mb4_unicode_ci;
# DB/Table select
SELECT table_schema,TABLE_NAME,table_collation FROM information_schema.tables
WHERE table_schema NOT IN ('information_schema','mysql','performance_schema','sys')
ORDER BY 1,2 desc;
SELECT SCHEMA_NAME, DEFAULT_CHARACTER_SET_NAME, DEFAULT_COLLATION_NAME,SCHEMA_COMMENT FROM information_schema.SCHEMATA
WHERE schema_name NOT IN ('information_schema','mysql','performance_schema','sys')
ORDER BY 2,3
# DBMS DEFAULT character set select
show variables like 'c%';
'DBMS > MySQL&Mariadb' 카테고리의 다른 글
mariadb(mysql) backup script (0) | 2023.07.24 |
---|---|
테이블 캐릭터셋 변경시 오류 해결 (0) | 2023.07.21 |
mariadb client 설치(application 서버) (0) | 2023.02.20 |
mariadb HA 구성도별 설명 (0) | 2022.07.11 |
mariadb partition table 다른 서버로 partition 이관(복원) (0) | 2022.07.11 |