・今更ながらmysqlのVer3系への接続が必要になった。
・4.1からPWハッシュが16桁→41桁となった。
・「--secure_auth=0」オプションで認証は通ったもののクエリを投げるとエラーになるので、4.0版クライアントをビルドする。
・5.6はCMakeでビルドしたが、5.5以前は従来通りのconfigureで実施
使用するソース・ファイルは下記からDLする。
http://dbstudy.info/mysql/4.0.30/mysql-4.0.30.tar.gz
コンパイル環境を整える
# yum install glibc
〜中略〜
Updated:
glibc.x86_64 0:2.12-1.149.el6_6.5
Dependency Updated:
glibc.i686 0:2.12-1.149.el6_6.5 glibc-common.x86_64 0:2.12-1.149.el6_6.5
glibc-devel.x86_64 0:2.12-1.149.el6_6.5 glibc-headers.x86_64 0:2.12-1.149.el6_6.5
nscd.x86_64 0:2.12-1.149.el6_6.5
Complete!
アーカイブダウンロード
# cd /tmp
# wget http://dbstudy.info/mysql/4.0.30/mysql-4.0.30.tar.gz
アーカイブファイル解凍
# tar zxvf mysql-4.0.30.tar.gz
configureする
# cd mysql-4.0.30
# ./configure --prefix=/sb/mysql/mysql4.0 --without-server
〜中略〜
MySQL has a Web site at http://www.mysql.com/ which carries details on the
latest release, upcoming features, and other information to make your
work or play with MySQL more productive. There you can also find
information about mailing lists for MySQL discussion.
Remember to check the platform specific part of the reference manual for
hints about installing MySQL on your platform. Also have a look at the
files in the Docs directory.
Thank you for choosing MySQL!
--prefixでインストール先指定
--without-serverでクライアントだけに指定
その他のオプションは下記参照
http://dev.mysql.com/doc/refman/4.1/en/source-configuration-options.html
makeする
# make
〜中略〜
/bin/mv binary-configure-t binary-configure
make[3]: ディレクトリ `/root/mysqlbuild/build4.0.30/mysql-4.0.30/support-files' から出ます
make[2]: ディレクトリ `/root/mysqlbuild/build4.0.30/mysql-4.0.30/support-files' から出ます
make[1]: ディレクトリ `/root/mysqlbuild/build4.0.30/mysql-4.0.30' から出ます
インストールする
# make install
〜中略〜
/usr/bin/install -c 'mysql.server' '/sb/mysql/mysql4.0/share/mysql/mysql.server'
make[3]: ディレクトリ `/root/mysqlbuild/build4.0.30/mysql-4.0.30/support-files' から出ます
make[2]: ディレクトリ `/root/mysqlbuild/build4.0.30/mysql-4.0.30/support-files' から出ます
make[1]: ディレクトリ `/root/mysqlbuild/build4.0.30/mysql-4.0.30/support-files' から出ます
おまけ〜アンインストール〜
# make uninstall
動作確認
# /sb/mysql/mysql4.0/bin/mysql --version
/sb/mysql/mysql4.0/bin/mysql Ver 12.22 Distrib 4.0.30, for unknown-linux-gnu (x86_64)