MySQL > CentOS5にMySQL5.5をyumでインストール

更新日 2011-11-25
広告
CentOS5に普通にyumでインストールできるMySQLは、バージョンが 5.0 である(2011年11月25日)。 バージョン 5.5 のMySQLをyumでインストールするには、特殊なレポジトリを利用しないといけない。
以下のように、yumで利用するレポジトリを追加する。
$ sudo rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
$ sudo rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
次に、追加したレポジトリを指定して、MySQLをインストールする。
$ sudo yum --enablerepo=remi,epel install mysql
$ sudo yum --enablerepo=remi,epel install mysql-server
インストールしたMySQLのバージョンは、以下のとおり。
$ /usr/libexec/mysqld  --version
/usr/libexec/mysqld  Ver 5.5.14 for Linux on x86_64 (MySQL Community Server (GPL) by Remi)
広告
お問い合わせは sweng.tips@gmail.com まで。
inserted by FC2 system