I recently modified the DDL of a VIEW with Workbench by adding a filter with strings of Chinese characters. The DDL can be saved successfully and worked perfectly right after being modified. However, the modification itself in the DDL became garbled symbols several hours later. The character_set_database and the character set of some columns were originally utf8(utf8_general_ci). After getting the error, I have made all of them utf8mb4 with default collation (utf8mb4_0900_ai_ci). The garbled symbols did change after altering the character set but they are still garbled. Any idea?
Example:
DDL right after modification: where m
.NAME
not in ('王曉明','張小英')
DDL several hours after modification: where m
.NAME
not in ('???D?','??\?')
Environment:
MYSQL 8.0.13 Community Server - GPL
Windows 10 professional 64bit (Tradition Chinese; Character set of typing output: UNICODE)
Workbench 8.0.13
Show variables like '%char%'
Result:
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 C:\Program Files\MySQL\MySQL Server 8.0\share\charsets\