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.