CentOS 5.2 MySQL 5.1.44にSpiderを入れる
Spiderストレージエンジンについては以下のブログの方を参照して頂くとして、Spiderの最新版を入れてみます。
ダウンロード
cd /usr/local/src wget 'http://launchpad.net/spiderformysql/spider-2.x/2.17-for-5.1.44/+download/spider-src-2.17-for-5.1.44.tgz' wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.44.tar.gz/from/http://ftp.iij.ad.jp/pub/db/mysql/ wget 'http://launchpad.net/partitionconditionpushdownformysql/trunk/0.1-for-5.1.44/+download/partition_cond_push-0.1-for-5.1.44.tgz'
アーカイブを展開
tar xvzf mysql-5.1.44.tar.gz tar xvzf spider-src-2.17-for-5.1.44.tgz tar xvzf partition_cond_push-0.1-for-5.1.44.tgz
※ 漢のMySQLさんのエントリーと名前が異なっているので注意しよう。spider-src-2.17-for-5.1.44.tgz
パッチとインストール
とりあえず、少ない台数で実験する為の設定
mv ./spider ./mysql-5.1.44/storage cd ./mysql-5.1.44 patch -p2 < ../mysql-5.1.44.partition_cond_push.diff patch -p2 < ../mysql-5.1.44.spider.diff autoconf automake ./configure \ --prefix=/usr/local/mysql \ --libexecdir=/usr/local/mysql/bin \ --enable-thread-safe-client \ --enable-local-infile \ --with-pic \ --with-client-ldflags=-static \ --with-mysqld-ldflags=-static \ --with-ssl \ --with-readline \ --with-plugins=max-no-ndb \ --with-extra-charsets=all \ --with-fast-mutexes \ --with-zlib-dir=bundled \ --with-big-tables \ --without-embedded-server make make install
Upgrade
MySQL 5.0から5.1へのアップグレードだったので以下を実行
./mysql_upgrade -uユーザ -pパスワード -S/var/lib/mysql/mysql.sock Looking for 'mysql' as: ./mysql Looking for 'mysqlcheck' as: ./mysqlcheck Running 'mysqlcheck' with connection arguments: '--socket=/var/lib/mysql/mysql.sock' Running 'mysqlcheck' with connection arguments: '--socket=/var/lib/mysql/mysql.sock' error : Table upgrade required. Please do "REPAIR TABLE `テーブル`" or dump/reload to fix it! . . . WARNING: NULL values of the 'character_set_client' column ('mysql.proc' table) have been updated with a default value (latin1). Please verify if necessary. WARNING: NULL values of the 'collation_connection' column ('mysql.proc' table) have been updated with a default value (latin1_swedish_ci). Please verify if necessary. WARNING: NULL values of the 'db_collation' column ('mysql.proc' table) have been updated with default values. Please verify if necessary.