0
0

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 6にMySQL 5.7をインストール(SCL)

Posted at

はじめに

Software Collection(SCL)を利用してCentOS6にMySQL5.7をインストール
親記事:MySQL, MariaDBの各種インストール方法とEOLまとめ - Qiita
参考:Quick Start — Software Collections

サポート

本手法で導入した場合、Red Hat Software Collections Product Life Cycle - Red Hat Customer Portalより、2019-11がEOLだと思われる。
それ以降に報告された脆弱性や不具合への対応は実施されない可能性がある。

LOG

レポジトリ登録

# yum install -y centos-release-scl

インストール

cat /etc/redhat-release
CentOS release 6.10 (Final)

# yum install -y rh-mysql57
# scl enable rh-mysql57 bash
... 略

mysql起動/停止

# service rh-mysql57-mysqld start
Initializing MySQL database
Starting rh-mysql57-mysqld:                                [  OK  ]

# service rh-mysql57-mysqld status
rh-mysql57-mysqld (pid  548) is running...
# service rh-mysql57-mysqld stop
Stopping rh-mysql57-mysqld:                                [  OK  ]

# service rh-mysql57-mysqld status
rh-mysql57-mysqld is stopped

mysql自動起動設定/設定解除

# chkconfig rh-mysql57-mysqld on
# chkconfig --list rh-mysql57-mysqld
rh-mysql57-mysqld       0:off   1:off   2:on    3:on    4:on    5:on    6:off
# chkconfig rh-mysql57-mysqld off
# chkconfig --list rh-mysql57-mysqld
rh-mysql57-mysqld       0:off   1:off   2:off   3:off   4:off   5:off   6:off

各種確認

# service rh-mysql57-mysqld start
Starting rh-mysql57-mysqld:                                [  OK  ]

# mysql -u root -e'select version();'
+-----------+
| version() |
+-----------+
| 5.7.24    |
+-----------+
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?