Home > Database > Mysql Tutorial > body text

mysql odbc字符集设置(中文显示乱码)_MySQL

WBOY
Release: 2016-06-01 13:51:57
Original
658 people have browsed it

1.将mysql安装目录下的my.ini中的[client]项中添加default-character-set=gb2312

  [client]
  default-character-set=gb2312
   port=3306
2.将my.ini拷贝到c盘根目录,并修改名字为my.cnf

3.在配置odbc源时,选上Read Options From my.cnf这一项

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!