|
藍森林 http://www.lslnet.com 2006年8月26日 15:18
配置mysql5.0.22遇到的字符集問題,請幫忙,謝謝^_^
[/etc]>swlist|grep mysql
mysql-standard 5.0.22 MySQL Community Edition - Standard (GPL)
[/etc]>ll /etc/my.cnf
-rwxrwxrwx 1 mysql mysql 156 Jul 24 10:27 /etc/my.cnf
在/etc/my.cnf中設置如下
[client]
default-character-set = gbk
default-table-type=innodb
[mysqld]
default-character-set = gbk #默認字符集
default-table-type=innodb #默認創建事務表
啟動時報錯:
Warning: World-writable config file '/etc/my.cnf' is ignored
仔細檢查了權限也沒有問題。 |
權限應該是:
-rw-r--r--
world writable config file is ignored
寫的很清楚了,全局可寫的config被忽略了。 |
謝謝^_^ |
| |