mysql

ビルドメモ

ビルド用ドキュメント INSTALL-SOURCE 該当箇所の引用(configureは個別設定) 2.9.1. Source Installation Overview The basic commands that you must execute to install a MySQL source distribution are: shell> groupadd mysql shell> useradd -g mysq…

デフォルトのストレージエンジン&文字セット

/etc/my.cnf [client] default-character-set=utf8[mysqld] default-character-set=utf8 default-storage-engine=InnoDB

InnoDBの有効化

ビルド時に --with-plugins=innobase が必要 http://d.hatena.ne.jp/end0tknr/20090130/1233288533 ./configure --prefix=/usr/local/mysql-5.1.30/ --with-charset=utf8 --with-plugins=innobase --with-mysqld-user=mysql

rake db:fixtures:loadによる外部制約の無視 (Rails 2.3.2)

foreign keyを設定したテーブルへfixturesを使って大量のデータをテーブルに投入中、外部制約違反の誤ったデータがなぜかimportされていました。外部制約が正しく設定されていないのかと思いきや、mySQLのログを確認すると勝手に「SET FOREIGN_KEY_CHECKS = …