Home > Backend Development > PHP Tutorial > mysql命令行中文乱码

mysql命令行中文乱码

WBOY
Release: 2016-06-23 13:49:36
Original
918 people have browsed it

  请各位大神帮助,我增数据是直接写在dos中的


回复讨论(解决方案)

set names gbk; 后再执行上述命令。

谢谢,我的第一句就是gbk 但是还是不行。

看看你的数据库的编码

show create table xx

我在mysql.ini的最后一行加入了 character-set-server=utf8   然后重新创建了一个表就行了。   谢谢各位朋友了

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