Mysql数据存储乱码

1.修改tomcat server.xml

<Connector port="8120" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8"/>


2.修改mysql.ini

default-character-set=utf8

character-set-server=utf8

 

posted @ 2016-07-19 21:48  IAMME  阅读(370)  评论(0编辑  收藏  举报