通过 PHPmyAdmin 在 mysql (mariadb) 数据库中保存 UTF8mb4 表情符号时出错错误 #1366

问题描述

我收到一个奇怪的错误。我只能在 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

enter image description here

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...