SQLSTATE[HY000]: General error: 3988 Conversion from collation utf8mb3_general_ci into utf8mb4_0900_
在使用php+mysql数据库作为数据存储表情符号,出现了 SQLSTATE[HY000]: General error: 3988 Conversion from collation utf8mb3_general_ci into utf8mb4_0900_ai_ci impossible for parameter
实际查询数据库、表、字段 都是utf8mb4 支持表情符号
最后落地查询,是连接sql字符串中,默认字符是utf8,不是utf8mb4 导致 SQLSTATE[HY000]: General error: 3988 Conversion from collation utf8mb3_general_ci into utf8mb4_0900_ai_ci impossible for parameter
将utf8修改为utf8mb4 解决