Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@witchcraze

CentOS 6にMySQL 5.7をインストール(SCL)

More than 1 year has passed since last update.

はじめに

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
Help us understand the problem. What is going on with this article?
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
witchcraze
個人用wiki代わりのメモを淡々と...

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?