Unknown collation: 'utf8mb4_unicode_ci'
2016-04-01 10:38
239 查看
日前给一个政府机关做个小的门户网站,用的是wordpress+主题开发,部署时发现导入数据库sql文本时出现Unknown collation: 'utf8mb4_unicode_ci'的错误,查了下原因:
I had the same issue as all of our servers run older versions of MySQL. This can be solved by running a PHP script. Save this code to a file and run it entering the database name, user and password and it'll change the collation from utf8mb4/utf8mb4_unicode_ci to utf8/utf8_general_ci
原因就是MySql的版本太老了,解决方法就是把
MySql版本不够,相信php的版本也没会够,三条黑线|||
I had the same issue as all of our servers run older versions of MySQL. This can be solved by running a PHP script. Save this code to a file and run it entering the database name, user and password and it'll change the collation from utf8mb4/utf8mb4_unicode_ci to utf8/utf8_general_ci
原因就是MySql的版本太老了,解决方法就是把
utf8mb4/utf8mb4_unicode_ci替换成
utf8/utf8_general_ci
MySql版本不够,相信php的版本也没会够,三条黑线|||
参考资料
http://stackoverflow.com/questions/29916610/1273-unknown-collation-utf8mb4-unicode-ci-cpanel相关文章推荐
- Hbase集群间数据迁移方法总结(包括不通信集群)
- mac 更改 php 版本 和-bash 命令失效的解决方法
- mysql 自动执行事件
- Github上的PHP资源汇总大全
- 如何在C#项目中引用dll文件
- APN的相关修改
- [转载]jquery ui(二)draggable,droppable 学习总结
- Linux芯片级移植与底层驱动(基于3.7.4内核)
- Android--Dialog详细讲解
- 导入到EXCEL
- Android音频底层调试-基于tinyalsa
- Jquery的bootstrap在线文本编辑器插件Summernote
- 【技巧】UITableView 在UITableViewStylePlain模型下,取消headerView的黏结性,不浮动
- spring service事务传播
- 浏览器插件之ActiveX开发(四)
- 微信接收回复消息(java)
- Android混淆代码,作个小记录!
- android canvas\paint\path简单使用(自定义view必学)
- Android让EditText失去焦点避免自动弹出输入法
- System类中的currentTimeMillis的使用