itoigawabass

itoigawaのブログ

mysql-5.0.15

2005-10-28

テスト用サーバーにインストールした。
手順は4.1と同じ
# groupadd mysql
# useradd -g mysql -d /usr/local/mysql/var mysql
# ./configure --prefix=/usr/local/mysql --with-charset=utf8 --with-collation=utf8_general_ci --with-extra-charsets=all --with-mysqld-user=mysql
# make
# make install
# cd /usr/local/mysql
# bin/mysql_install_db --user=mysql
# chown -R root .
# chown -R mysql var
# chgrp -R mysql .
# bin/mysqld_safe --user=mysql &

自動起動の設定
# cd srcfiles/mysql-5.0.15/support-files/
# cp my-medium.cnf /etc/my.cnf
# cp mysql.server /erc/rc.d/init.d/
# cd /etc/rc2.d/
# ln -s ../init.d/mysql.server S90mysql

root用のpasswordを設定
mysql> set password for root@localhost=PASSWORD('password');

ユーザーの作成
mysql> grant all privileges on *.* to user@localhost identified by 'password' with grant option;
mysql> grant all privileges on *.* to user@'%' identified by 'password' with grant option;

カテゴリー:blog
タグ: