Home >Database >Mysql Tutorial >mysql字符集和数据库引擎修改方法分享_MySQL

mysql字符集和数据库引擎修改方法分享_MySQL

WBOY
WBOYOriginal
2016-06-01 13:22:35848browse

bitsCN.com MySQL字符集:cp1252 West European (latin1) ,解决乱码问题


使用虚拟主机空间上的phpmyadmin操作数据库的时候,如果看到phpmyadmin首页上显示的MySQL 字符集为cp1252 West European (latin1),当我们导入数据时就会出现乱码,解决的方法是:

在phpmyadmin首页的右边有个Language选项,把默认的中文 - Chinese simplified-gb2312改成 中文 - Chinese simplified,则左边的MySQL 字符集会变成UTF-8 Unicode (utf8) ,乱码问题得到解决!


phpmyadmin 默认创建的数据库默认的数据库引擎为innodb,如果希望修改为灵活性更高的myisam
在my.ini找到default-storage-engine=innodb,修改为myisambitsCN.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