Mysqlバイナリのインストール
ダウンロードした tar.gzファイルは、以下の一連の操作の前に /usr/local に移動しています。
shell# groupadd mysql
shell# useradd -g mysql mysql
shell# cd /usr/local
shell# tar xvzf mysql-standard-4.1.9-pc-linux-gnu-i686.tar.gz
shell# ln -s mysql-standard-4.1.9-pc-linux-gnu-i686 mysql
shell# cd mysql
shell# scripts/mysql_install_db --user=mysql
shell# chown -R root .
shell# chown -R mysql data
shell# chgrp -R mysql .
shell# bin/mysqld_safe --user=mysql &
---------------------------------------------
mysqld の自動起動設定 (rcファイル) # cd /usr/local/mysql
# cp -p ./support-files/mysql.server /etc/rc.d/init.d/mysql
# cd /etc/rc.d/init.d
# vi mysql
$bindir/mysqld_safe に -L japaneseオプションを付与します
$bindir/mysqld_safe --datadir=$datadir --pid-file=$pid_file -L japanese
# chkconfig --add mysql
# chkconfig --list mysql
mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
#