设置文件mysql/bin/my.ini【mac用户在ect文件夹里创建文件my.cnf】 添加以下代码: [mysqld] character-set-server=utf8mb4 转载于:https://www.cnblogs.com/kkvt/p/10586668.html