关于"xampp中mysql中配置问题:Unknown initial character set index '48' received from server错误解决方法"

一个老生常谈的问题:

错误提示:Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: Unknown initial character set index '48' received from server. Initial client character set can be forced via the 'characterEncoding' property.

从错误的提示信息中发现字符集设置出现问题,只要把mysql/bin目录下,找到my.cnf,打开该文件,把collation-server = latin1_general_ci改为collation-server = latin1_swedish_ci,重启数据库就行了.

猜你喜欢

转载自blog.csdn.net/c_huabo/article/details/51323647
今日推荐