Ms7 Search
Google 搜尋 翻譯
calendar
« 二月 2025 »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28    
近期文章
文章分類
網站連結
Syndicate

分類: Linux

mysql 預設 utf8

2007-04-24 @ 19:42 in Linux

vi /etc/my.cnf

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
skip-innodb
set-variable=local-infile=0
# 取消網路
skip-networking
# 下面設定預設字型 utf8
default-character-set=utf8

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[mysql]
# 下面設定預設字型 utf8
default-character-set=utf8

«上一篇   1 2 3 4 5 6 7 8