Help us understand the problem. What is going on with this article?

CentOS7にyumでMariaDB最新版インストール

More than 1 year has passed since last update.

公式HP見てたらワンライナーがあったのでメモ
#2018/6/3 少しコマンドが変わっていたので更新

ワンライナーには環境依存はないけれど一応
Host OS : CentOS7.3
Target : Mariadb-10.2

リポジトリインストール

$ curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
これだけ

バージョン指定したい場合は
$ curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=mariadb-10.0

その他のオプションは下記URLに
https://mariadb.com/kb/en/the-mariadb-library/mariadb-package-repository-setup-and-usage/

MariaDBインストール

インストール

$ sudo yum install MariaDB-server MariaDB-client

サービス開始

$ sudo systemctl start mariadb

起動時にサービス開始

$ sudo systemctl enable mariadb

接続確認

$ mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.                                            
Your MariaDB connection id is 8                    
Server version: 10.2.8-MariaDB MariaDB Server      

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.                                   

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.                         

MariaDB [(none)]> 

となれば完了

$ mysql_secure_installation
で初期設定

備考

ワンライナーは下記OSに対応
- Red Hat Enterprise Linux (RHEL)/CentOS 6 and 7
- Debian 7 (wheezy) and 8 (jessie)
- Ubuntu 14.04 LTS (trusty) and 16.04 LTS (xenial)
- SUSE Linux Enterprise Server (SLES) 12

ys-0-sy
🔰めざせふるすたっくえんじにあ🔰
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした