12
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOSにMariaDB最新をyumインストール

Last updated at Posted at 2015-06-12

前提

  • CentOS 6.6
  • MariaDB 10.0.19

MariaDBのPGP keyをインストール

# rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

リポジトリの設定変更

# vi /etc/yum.repos.d/mariadb.repo
mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0.19/centos6-x86/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
enabled=1

MariaDBをyumでインストール

# yum -y install MariaDB-devel MariaDB-client MariaDB-server

エラーが出たらmysql-libsを削除

# rpm -e --nodeps mysql-libs
# yum -y install MariaDB-devel MariaDB-client MariaDB-server

MariaDBの起動

# /etc/init.d/mysql start

rootユーザーのパスワード設定

# /usr/bin/mysqladmin -u root password '!password'

おつかれさまでした

12
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?