Red Hat Enterprise Linux Server release 6.8にMariaDB 5.5をインストールしてみました。
【検証環境】
・Red Hat Enterprise Linux Server release 6.8 (Santiago)
・Kernel: 2.6.32-642.el6.x86_64
・mysql Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1
mysql-libs-5.1.73-7.el6.x86_64
mysql-devel-5.1.73-7.el6.x86_64
mysql-server-5.1.73-7.el6.x86_64
mysql-5.1.73-7.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
- Uninstall mysql
- Create MariaDB.repo
- Install MariaDB
- 起動確認
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# yum remove mysql-* (snip) Removed: mysql.x86_64 0:5.1.73-7.el6 mysql-connector-odbc.x86_64 0:5.1.5r1144-7.el6 mysql-devel.x86_64 0:5.1.73-7.el6 mysql-libs.x86_64 0:5.1.73-7.el6 mysql-server.x86_64 0:5.1.73-7.el6 Dependency Removed: MySQL-python.x86_64 0:1.2.3-0.3.c1.1.el6 cronie.x86_64 0:1.4.4-15.el6_7.1 cronie-anacron.x86_64 0:1.4.4-15.el6_7.1 crontabs.noarch 0:1.10-33.el6 perl-DBD-MySQL.x86_64 0:4.013-3.el6 postfix.x86_64 2:2.6.6-6.el6_7.1 redhat-lsb.x86_64 0:4.0-7.el6 redhat-lsb-compat.x86_64 0:4.0-7.el6 redhat-lsb-core.x86_64 0:4.0-7.el6 redhat-lsb-graphics.x86_64 0:4.0-7.el6 redhat-lsb-printing.x86_64 0:4.0-7.el6 sysstat.x86_64 0:9.0.4-31.el6 webalizer.x86_64 0:2.21_02-3.3.el6 Complete! |
yum による MariaDB のインストール
https://mariadb.com/kb/ja/yum/
repository generator
https://downloads.mariadb.org/mariadb/repositories/
repository generatorで必要なディストリビューション、OS、DBバージョンを選択するとリポジトリが作成されます。
Copy & Pasteで/etc/yum.repo.d/mariadb.repoを作成します。
継続して使用すするのでenable=1を追記しています。
1 2 3 4 5 6 7 8 9 10 11 |
# vi /etc/yum.repos.d/mariadb.repo # cat /etc/yum.repos.d/mariadb.repo # MariaDB 5.5 RedHat repository list - created 2016-10-23 04:27 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/rhel6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 enable=1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# yum search maria Loaded plugins: product-id, search-disabled-repos, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. ============================================= N/S Matched: maria ============================================= MariaDB-Galera-server.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-Galera-test.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-client.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-common.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-compat.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-devel.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-server.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-shared.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-test.x86_64 : MariaDB: a very fast and robust SQL database server Name and summary matches only, use "search all" for everything. # yum info MariaDB-server Loaded plugins: product-id, search-disabled-repos, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Available Packages Name : MariaDB-server Arch : x86_64 Version : 5.5.53 Release : 1.el6 Size : 43 M Repo : mariadb Summary : MariaDB: a very fast and robust SQL database server URL : http://mariadb.org License : GPLv2 Description : MariaDB: a very fast and robust SQL database server : : It is GPL v2 licensed, which means you can use the it free of charge under the : conditions of the GNU General Public License Version 2 (http://www.gnu.org/licenses/). : : MariaDB documentation can be found at http://kb.askmonty.org/ : MariaDB bug reports should be submitted through https://mariadb.atlassian.net/ |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# yum install MariaDB-server Loaded plugins: product-id, search-disabled-repos, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package MariaDB-server.x86_64 0:5.5.53-1.el6 will be installed --> Processing Dependency: MariaDB-common for package: MariaDB-server-5.5.53-1.el6.x86_64 --> Processing Dependency: MariaDB-client for package: MariaDB-server-5.5.53-1.el6.x86_64 --> Running transaction check ---> Package MariaDB-client.x86_64 0:5.5.53-1.el6 will be installed ---> Package MariaDB-common.x86_64 0:5.5.53-1.el6 will be installed --> Processing Dependency: MariaDB-compat for package: MariaDB-common-5.5.53-1.el6.x86_64 --> Running transaction check ---> Package MariaDB-compat.x86_64 0:5.5.53-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================== Package Arch Version Repository Size ============================================================================================================== Installing: MariaDB-server x86_64 5.5.53-1.el6 mariadb 43 M Installing for dependencies: MariaDB-client x86_64 5.5.53-1.el6 mariadb 10 M MariaDB-common x86_64 5.5.53-1.el6 mariadb 23 k MariaDB-compat x86_64 5.5.53-1.el6 mariadb 2.7 M Transaction Summary ============================================================================================================== Install 4 Package(s) Total download size: 56 M Installed size: 226 M Is this ok [y/N]: y Downloading Packages: (1/4): MariaDB-5.5.53-centos6-x86_64-client.rpm | 10 MB 00:08 (2/4): MariaDB-5.5.53-centos6-x86_64-common.rpm | 23 kB 00:00 (3/4): MariaDB-5.5.53-centos6-x86_64-compat.rpm | 2.7 MB 00:01 (4/4): MariaDB-5.5.53-centos6-x86_64-server.rpm | 43 MB 00:31 -------------------------------------------------------------------------------------------------------------- Total 1.3 MB/s | 56 MB 00:42 warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 1bb943db: NOKEY Retrieving key from https://yum.mariadb.org/RPM-GPG-KEY-MariaDB Importing GPG key 0x1BB943DB: Userid: "MariaDB Package Signing Key <package-signing-key@mariadb.org>" From : https://yum.mariadb.org/RPM-GPG-KEY-MariaDB Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : MariaDB-compat-5.5.53-1.el6.x86_64 1/4 Installing : MariaDB-common-5.5.53-1.el6.x86_64 2/4 Installing : MariaDB-client-5.5.53-1.el6.x86_64 3/4 Installing : MariaDB-server-5.5.53-1.el6.x86_64 4/4 Verifying : MariaDB-server-5.5.53-1.el6.x86_64 1/4 Verifying : MariaDB-common-5.5.53-1.el6.x86_64 2/4 Verifying : MariaDB-compat-5.5.53-1.el6.x86_64 3/4 Verifying : MariaDB-client-5.5.53-1.el6.x86_64 4/4 Installed: MariaDB-server.x86_64 0:5.5.53-1.el6 Dependency Installed: MariaDB-client.x86_64 0:5.5.53-1.el6 MariaDB-common.x86_64 0:5.5.53-1.el6 MariaDB-compat.x86_64 0:5.5.53-1.el6 Complete! |
起動スクリプトは/etc/init.d/mysqlです。
1 2 3 4 5 |
# /etc/init.d/mysql start Starting MySQL.161022 00:28:17 mysqld_safe Logging to '/var/lib/mysql/rhel6.rootlinks.net.err'. . SUCCESS! [root@rhel6 ~]# mysql -V mysql Ver 15.1 Distrib 5.5.53-MariaDB, for Linux (x86_64) using readline 5.1 |
MariaDB 10.1もインストールできそうな気がしますがどうでしょうか。