macports + mysql
できた。疲れた。
ERROR! Manager of pid-file quit without updating file.
とかでるので、
http://d.hatena.ne.jp/deis/20090929/1254195630
を見ながら設定してるんだけど、それでもうまく行かない。
ググるとlogを見ろとかあるけど、ログの場所がまずわからない。
- >$ less /opt/local/var/db/mysql5/マシン名.local.err にあった。
見たところ、
/opt/local/libexec/mysqld: Character set 'utf-8' is not a compiled character set and is not specif
ied in the '/opt/local/share/mysql5/mysql/charsets/Index.xml' file
とある。
よくみたらutf-8じゃなくてutf8が正解なので、
sudo vim /opt/local/etc/mysql5/my.cnf
して書き換えた。