Home >Database >Mysql Tutorial >MySQL命令行出现乱码解决_MySQL

MySQL命令行出现乱码解决_MySQL

WBOY
WBOYOriginal
2016-06-01 13:40:311051browse

bitsCN.com
MySQL命令行出现乱码解决 环境:MySQL Sever 5.1 + MySQL命令行工具
 问题:使用命令行查询数据库里的数据出现乱码。解决:[sql] set names utf8;     --则等同于     set character_set_client=utf8;  set character_set_results=utf8;  set character_set_connection=utf8;   如果仍出现乱码 执行set names gbk;或者set names gb2312;

参考资料: MySQL命令行乱码问题的解决http:///database/201209/154371.html;
 MySQL命令行显示乱码问题http:///database/201209/154373.html;
 Mysql 命令行查询中文乱码http://www.iteye.com/problems/57566 bitsCN.com

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