Home  >  Article  >  Database  >  查看修改mysql编码方式让它支持中文(gbk或者utf8)_MySQL

查看修改mysql编码方式让它支持中文(gbk或者utf8)_MySQL

WBOY
WBOYOriginal
2016-06-01 13:23:39856browse

bitsCN.com MySQL的默认编码是Latin1,不支持中文,要支持中文需要把数据库的默认编码修改为gbk或者utf8。

1、需要以root用户身份登陆才可以查看数据库编码方式(以root用户身份登陆的命令为:>mysql -u root

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