[client] default-character-set = utf8mb4 [mysql] default-character-set = utf8mb4 [mysqld] character-set-client-handshake = FALSE character-set-server = utf8mb4 collation-server = utf8mb4_unicode_ci init_connect='SET NAMES utf8mb4'
jdbc:mysql://ip:3306/schema?useUnicode=true&characterEncoding=utf8
mysql
其餘文章都說最低版本5.1.13就能夠了,可是我用的5.1.32仍是不能夠,最後切換到5.1.46能夠插入特殊字符
sql