程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> MySQL綜合教程 >> MySql修改編碼以及字符集

MySql修改編碼以及字符集

編輯:MySQL綜合教程

MySql修改編碼以及字符集   進入數據庫的安裝目錄:C:/Program Files/MySQL/MySQL Server 5.0 裡面有一個my.ini文件 找到這個位置  www.2cto.com   CLIENT SECTION # ---------------------------------------------------------------------- # # The following options will be read by MySQL client applications. # Note that only client applications shipped by MySQL are guaranteed # to read this section. If you want your own MySQL client program to # honor these values, you need to specify it as an option during the # MySQL client library initialization. # [client] port=3306 [mysql] default-character-set=utf8 # ---------------------------------------------------------------------- 在這段,你可以 修改數據庫使用的 字符集 *************************************************************************** [mysqld] # The TCP/IP Port the MySQL Server will listen on port=3306   #Path to installation directory. All paths are usually resolved relative to this. basedir="C:/Program Files/MySQL/MySQL Server 5.0/" #Path to the database root datadir="C:/Program Files/MySQL/MySQL Server 5.0/Data/" # The default character set that will be used when a new schema or table is # created and no character set is defined default-character-set=utf8 # ---------------------------------------------------------------------- 在這段,你可以 修改數據庫使用的 編碼  

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved