Ms7 Search
Google 搜尋 翻譯
calendar
« 九月 2024 »
            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 29
30            
近期文章
文章分類
網站連結
Syndicate

« | »

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

迴響

mysql 編碼問題

只要在 php 語法中加入 mysql_query("SET NAMES utf8") //用 utf8 編碼 mysql_query("SET NAMES big5") //用 big5 編碼
作者 shyong @ 09:09, 2009-01-16

mysql 編碼問題 utf-8

很奇怪,今天在測試 mysql utf-8 編碼格式時,如果用 mysql_query("SET NAMES utf8")時中文會亂碼,可是用 mysql_query("SET NAMES utf-8")時中文正常,而且在加掛 Optimizer 時,好像會有不立刻更新的問題,拿掉或重新啟動 apache就好了

作者 shyong @ 20:56, 2010-03-24

我只是愛你的有趣博客

我想說,你真的幫助我理解的主題 mysql ?? utf8 | ??

作者 seo services vancouver @ 02:47, 2012-03-03

mysql 預設 utf8 | 豬窩

Hi there, I enjoy reading all of your article. I wanted to write a little comment to support you.

作者 g the @ 14:15, 2020-06-20

mysql 預設 utf8 | 豬窩

You really make it appear so easy with your presentation however I find this topic to be
really something which I feel I would by no means understand.
It kind of feels too complex and extremely vast for me.
I am having a look ahead to your next submit, I'll try to get the grasp of it!

作者 g people @ 11:24, 2020-06-21
1 2 3 4 5 6  下一篇»
發表迴響
 authimage