返回列表 上一主題 發帖

[原創] My SQL 中文亂碼解決方式

[原創] My SQL 中文亂碼解決方式

本帖最後由 Min 於 2010-5-1 23:53 編輯

1.SQL SERVER設定

my.ini (mysqld-nt)設定下
  1. #This File was made using the WinMySQLAdmin 1.4 Tool
  2. #2006/9/6 下午 02:00:49

  3. #Uncomment or Add only the keys that you know how works.
  4. #Read the MySQL Manual for instructions

  5. [mysqld]
  6. basedir=C:/mysql
  7. #bind-address=10.10.10.10
  8. datadir=C:/mysql/data
  9. #language=C:/mysql/share/your language directory
  10. #slow query log#=
  11. #tmpdir#=
  12. #port=3306
  13. #set-variable=key_buffer=512M
  14. [color=Red]default-character-set=big5
  15. [WinMySQLadmin]
  16. Server=C:/mysql/bin/mysqld-nt.exe
  17. user=root
  18. password=baby
  19. [color=Red]default-character-set=big5

  20. [client]
  21. default-character-set=big5
  22. init_connect='SET NAMES big5'
複製代碼
2.ADO連線設定
  1. Cnnl.Open "Driver={MySQL ODBC 3.51 Driver};Server=SERVER_NAME;Port=3306;Database=test;CharSet=big5;Uid=root;Pwd=;Option=16387"
複製代碼
(紅色字 是需新增的!)

        靜思自在 : 能幹不幹,不如苦幹實幹。
返回列表 上一主題