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

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

WBOY
WBOYOriginal
2016-06-06 09:34:31977browse

编码mysql图片java

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

mysql> SET character_set_results = utf8;

mysql> SET character_set_connection = utf8;

Statement:
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