7月17日の記事のとおり、MySQLのインストールに失敗してます。
というか、古いバージョンをインストールしちゃいました。
ので、再度インストールしなおしです。
当然のことながら、不要なMySQL4.0.27は停止しておきます。
# fetch ftp://ftp.iij.ad.jp/pub/db/mysql/Downloads/MySQL-4.1/mysql-4.1.20.tar.gz
# tar zxvf mysql-4.1.20.tar.gz
# cd mysql-4.1.20
# ./configure
? --with-mysql-user=mysql
? --with-charset=ujis
? --with-extra-charsets=all
? --without-innodbchecking build system type... i386-unknown-freebsd6.1
checking host system type... i386-unknown-freebsd6.1
・
・
・
(中略)
・
・
・
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!
# makecd libmysql; make link_sources
・
・
・
(中略)
・
・
・
/bin/mv ndb-config-2-node.ini-t ndb-config-2-node.ini
# make installmake install-recursive
Making install in .
Making install in include
・
・
・
(中略)
・
・
・
test -z "/usr/local/share/mysql" || /bin/sh ../mkinstalldirs "/usr/local/share/mysql"
/usr/bin/install -c 'mysql.server' '/usr/local/share/mysql/mysql.server'
一応ここでreboot。
起動したら
# mysql_install_dbInstalling all prepared tables
Fill help tables
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/local/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h sundaybreeze.jp password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/local/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
You can start the MySQL daemon with:
cd /usr/local ; /usr/local/bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /usr/local/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
# cp -p support-files/mysql.server /usr/local/etc/rc.d/mysql.server.sh
# chmod 555 /usr/local/etc/rc.d/mysql.server.sh
# chown -R mysql:mysql /usr/local/varで、MySQLの起動。
# /usr/local/etc/rc.d/mysql.server.sh start一時サーバのデータを一気にimport。
# mysql -u root < ダンプファイル
# /usr/local/etc/rc.d/mysql.server.sh stop
# /usr/local/etc/rc.d/mysql.server.sh start全データのimportにかかった時間は、2分12秒。
まあ許される範囲でしょう。
なんで5.0は時間がかかったんだ?
で、やっぱりエラーログには
[Warning] mysql.user table is not updated to new password format; Disabling new password usage until mysql_fix_privilege_tables is runとでてました。
本ちゃんサーバなので、このままにしておくのもと思い、
# mysql_fix_privilege_tablesThis script updates all the mysql privilege tables to be usable by
MySQL 4.0 and above.
This is needed if you want to use the new GRANT functions,
CREATE AGGREGATE FUNCTION, or the more secure passwords in 4.1
done
とやってみました。
その後には再度MySQLサーバの再起動。
まあこんな感じでしょうか。
で、MySQLのライブラリが絡んでいるPHPについても
再度コンパイルし、インストール。
手順は
7月13日の記事のとおりです。