my.confで文字コード設定確認
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
alter文でdatabase,tableの文字コード変更
settingsで文字コード指定
'OPTIONS': {'charset':'utf8mb4'}