Home > Database > Mysql Tutorial > cmd显示mysql中文乱码解决_MySQL

cmd显示mysql中文乱码解决_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:29:56
Original
1121 people have browsed it

bitsCN.com

cmd显示mysql中文乱码解决

 

首先cmd默认编码是GBK,而mysql默认使用的是utf-8 所以你可以设置cmd为

 

1chcp 65001  就是换成UTF-8代码页 2chcp 936 可以换回默认的GBK 3chcp 437 是美国英语
Copy after login

同时也可以设置mysql

1set names gbk
Copy after login

 

 

bitsCN.com
Related labels:
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
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template