Character set 'utf8mb4' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
Character set 'utf8mb4' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
Cannot connect to MySQL: DBI connect('med_data;host=127.0.0.1;mysql_read_default_group=client','root',...) failed: Can't initialize character set utf8mb4 (path: /usr/share/mysql/charsets/) at /usr/bin/pt-online-schema-change line 2281

更改/usr/share/mysql/charsets/Index.xml 内容,将

 
1
2
3
4
5
6
7
8
9
10
11
12
13
>
>
>
>
>
>
>
>
>
>
>
>
>

改为

 
1
2
3
4
5
6
7
8
9
10
11
12
13
>
>
>
>
>
>
>
>
>
>
>
>
>

不光光pt-online-schema-change工具会遇到这个问题,其它工具也会,也是这么解决的。

转自 http://www.ttlsa.com/mysql/pt-online-schema-change-utf8mb4-error-solution/

 

相关文章:

  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
  • 2021-12-31
  • 2022-02-21
  • 2022-12-23
猜你喜欢
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案