为什么导入.sql文件错误: 
MySQL 8 建表默认的编码是utf8mb4_0900_ai_ci,而Mysql 5.x版本只支持utf8mb4_general_ci,不支持utf8mb4_0900_ai_ci编码
处理方式:把Mysql 8导出的.sql文件中的 utf8mb4_0900_ai_ci 替换成 utf8mb4_general_ci

建议:在Mysql 8刚安装好后,修改配置文件,在[mysqld]段后面添加下面2行
[mysqld]

character-set-server = utf8mb4
collation-server = utf8mb4_general_ci

这样的话新建的数据库编码就是utf8mb4_general_ci,导出的.sql文件在Mysql 5.x中导入
网络 | 评论(0) | 引用(0) | 阅读(3)
 
发表评论
   
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]