Home  >  Article  >  Database  >  mysql 命令行里 charset gbk; 作用。

mysql 命令行里 charset gbk; 作用。

WBOY
WBOYOriginal
2016-06-06 09:39:241719browse

mysql

图片说明

这里我设置了所有的编码格式都是utf8...数据库也是utf8。。怎么插入中文,查询却还是乱码。。这里我不太懂。】
图片说明
这里环境编码又有什么影响和关系??

cmd是GBK的,这样。我如果只有数据库为utf-8,client,server ,result都是GBK的。。是不是当cmd输入中文后,程序往数据里填数据时自动转换为utf-8。。再读出来时又自动转换gbk显示在cmb界面上。???????????????

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