今日はAWSではなく、MySQLの話です。
CentOSでMySQLのインストールのときに、単にyumを使っても5.1だったりします。
EPELやREMIなどのリポジトリを追加しても、5.5にはなりますが、5.6をインストールしたい要件が多くなってきました。
これまでは、MySQLの公式ページからrpmをダウンロードしてきてインストールしてました。
ところが、昨日公式ページにyumのリポジトリが公開されているのを見つけました。
http://dev.mysql.com/downloads/repo/
これを使うと、さくっとMySQL5.6がインストールできます。
手順を残しておきます。
# rpm -ivh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
Retrieving http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
Preparing... ################################# [100%]
Updating / installing...
1:mysql-community-release-el6-5 ################################# [100%]
# yum install mysql-server
Loaded plugins: priorities, update-motd, upgrade-helper
1 packages excluded due to repository priority protections
Package mysql-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.6.15-1.el6.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.6.15-1.el6 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.15-1.el6 for package: mysql-community-server-5.6.15-1.el6.x86_64
--> Processing Dependency: mysql-community-client(x86-64) = 5.6.15-1.el6 for package: mysql-community-server-5.6.15-1.el6.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.15-1.el6 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) = 5.6.15-1.el6 for package: mysql-community-client-5.6.15-1.el6.x86_64
---> Package mysql-community-common.x86_64 0:5.6.15-1.el6 will be installed
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.6.15-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================
Installing:
mysql-community-server x86_64 5.6.15-1.el6 mysql56-community 51 M
Installing for dependencies:
mysql-community-client x86_64 5.6.15-1.el6 mysql56-community 17 M
mysql-community-common x86_64 5.6.15-1.el6 mysql56-community 296 k
mysql-community-libs x86_64 5.6.15-1.el6 mysql56-community 1.8 M
Transaction Summary
======================================================================================================================================================
Install 1 Package (+3 Dependent packages)
Total size: 71 M
Installed size: 322 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mysql-community-common-5.6.15-1.el6.x86_64 1/4
Installing : mysql-community-libs-5.6.15-1.el6.x86_64 2/4
Installing : mysql-community-client-5.6.15-1.el6.x86_64 3/4
Installing : mysql-community-server-5.6.15-1.el6.x86_64 4/4
Verifying : mysql-community-client-5.6.15-1.el6.x86_64 1/4
Verifying : mysql-community-libs-5.6.15-1.el6.x86_64 2/4
Verifying : mysql-community-common-5.6.15-1.el6.x86_64 3/4
Verifying : mysql-community-server-5.6.15-1.el6.x86_64 4/4
Installed:
mysql-community-server.x86_64 0:5.6.15-1.el6
Dependency Installed:
mysql-community-client.x86_64 0:5.6.15-1.el6 mysql-community-common.x86_64 0:5.6.15-1.el6 mysql-community-libs.x86_64 0:5.6.15-1.el6
Complete!
0 件のコメント:
コメントを投稿