【发布时间】:2021-04-04 19:06:07
【问题描述】:
我遇到了一个奇怪的错误。我只能将❤️保存在 mysql 数据库中。我测试的所有其他表情符号都没有存储在数据库中。
Warning: #1366 Wrong string
看截图。
我做了以下事情
1. In my.cnf set default-character-set = utf8mb4
2. Create new database with collation utf8mb4_general_ci
3. Create new table table with collation utf8mb4_general_ci
4. Set collation from row to utf8mb4_general_ci
我重新启动了 mysql 服务器。但没有机会。我完全不知道为什么我可以存储❤️但没有其他表情符号。
设置: Ubuntu 20.04.1 LTS PLESK 18.0.32
【问题讨论】:
标签: mysql phpmyadmin utf8mb4