# The default character set that will be used when a new schema or table is
# created and no character set is defined
# created and no character set is defined
character-set-server=utf8
模糊查询中文没有ResultSet 结果集,可能是java在进行查询传到mysql 上乱码了,可能安装的时候没有选择正确的字符集格式
在mysql 的安装目录将 character-set-server=latin1的值改为utf-8
查看mysql的编码格式
show VARIABLES like 'character%';
修改数据库的编码格式
set character_set_database=utf8;