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

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

はじめに

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    |
+-----------+
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
ユーザーは見つかりませんでした