ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes# * Character sets# MySQL/MariaDB default is Latin1, but in Debian we rather default toSee also client.cnfcharacter-set-server = utf8mb4
collation-se
我有一组红宝石脚本可以访问我的MySQL数据库。我需要修改这个数据库的字符集,特别是将表从Latin1更改为UTF8。我真的需要修改我的脚本吗?我已经看过了,我看到我可以设置一个连接的字符集,这是强制性的吗?mysql> SHOW VARIABLES LIKE "%char%"; +--------------------------+----------