Ruby開発環境構築(MySQL)
remiリポジトリを登録
# wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# rpm -ivh remi-release-6.rpm
MySQL5.5のインストール
# yum --enablerepo=remi install mysql mysql-server mysql-devel
/etc/my.cnf の編集
# vi /etc/my.cnf
[mysqld]
character-set-server = utf8
skip-character-set-client-handshake
[mysql]
default-character-set = utf8
自動起動
# chkconfig mysqld on
デーモン起動
# service mysqld start
mysql設定
# mysql_secure_installation