pt-online-schema-change utf8mb4 error solution [transfer]

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

Change the content of /usr/share/mysql/charsets/Index.xml to

change to

Not only the pt-online-schema-change tool will encounter this problem, but other tools will also solve this problem.

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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324573168&siteId=291194637