更改 /etc/mysql/my.cnf, 添加如下内容:
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld
2020-09-28