Home > Database > Mysql Tutorial > 编码-java向mySql插入数据乱码

编码-java向mySql插入数据乱码

WBOY
Release: 2016-06-06 09:34:31
Original
981 people have browsed it

编码mysql图片java

图片说明
为什么我执行以下命令行后暂时成功改成了utf8,但是退出mysql后重新进入又变成gbk编码了呢
mysql> SET character_set_client = utf8;

mysql> SET character_set_results = utf8;

mysql> SET character_set_connection = utf8;

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template