我使用Spring JPA对数据库mysql进行操作,一开始创建数据库时已经设定
default-character-set=utf8mb4
default-collation=utf8mb4_general_ci
但是运行之后仍然报错:
java.sql.SQLException: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
客户端数据库连接串配置了没有?