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

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

WBOY
WBOYOriginal
2016-06-01 13:51:57658browse

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这一项

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