3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mysqlerror : (2019, "Can't initialize character set utf8mb4 (path: /usr/share/mysql/charsets/)")

Posted at

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'}

/usr/share/mysql/charsets/Index.xml の <charset name="utf8"> を <charset name="utf8mb4"> に書き換え。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?