fedora15 mysql5.5 default-character-setãåå ã§èµ·åã§ããªã
fedora15ã«ã¢ãããã¼ãããéã«ãã¾ãåããªãã£ãããã°ã©ã ãããã¾ãã
mysqldãèªåèµ·åããããã«è¨å®ãã¦ãã¾ããããèµ·åæã«ã¨ã©ã¼ãåãã¦mysqldãèµ·åãã¦ããã¾ããã§ããã/var/log/mysqld.logã確èªãã¦ã¿ãã¨ã
[ERROR] /usr/libexec/mysqld: unknown variable 'default-character-set=utf8'
ã¨ããã¨ã©ã¼ãåºãã¦ãã¾ãã
ç§ã¯my.cnfã«ä»¥ä¸ã®ããã«æ¸ãã¦ããã®ãåå ã®ããã§ãã
[mysqld] default-character-set=utf8 [mysql] default-character-set=utf8
ã¯ã©ã¤ã¢ã³ãã§ããmysqlå´ã®è¨å®ã¯è¯ãã®ã§ããããµã¼ãã¼å´ã¯mysql5.5ãã表è¨ãå¤ãã£ãããã§ããæ°ããæ¸ãæ¹ã¯
[mysqld] character-set-server=utf8 [mysql] default-character-set=utf8
ã¨ãªãã¾ãã
以ä¸ã®ãã¼ã¸ãåèã«ããã¦ããã ãã¾ããã
KennyQi PHP Blogããã®ããã°å
MySQL 5.5ã§ãdefault-character-setãã使ããæååãããâãcharacter-set-serverãã«ããã¨OKã®ãã¼ã¸