Closed4

AmazonLinux2にMySQL Clientをインストール

RaohRaoh
$ wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
$ rpm -qip mysql57-community-release-el7-11.noarch.rpm
warning: mysql57-community-release-el7-11.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Name        : mysql57-community-release
Version     : el7
Release     : 11
Architecture: noarch
Install Date: (not installed)
Group       : System Environment/Base
Size        : 31563
License     : GPLv2
Signature   : DSA/SHA1, Thu 27 Apr 2017 09:29:12 AM UTC, Key ID 8c718d3b5072e1f5
Source RPM  : mysql57-community-release-el7-11.src.rpm
Build Date  : Thu 27 Apr 2017 09:14:05 AM UTC
Build Host  : siv27.no.oracle.com
Relocations : (not relocatable)
Packager    : MySQL Release Engineering <mysql-build@oss.oracle.com>
Vendor      : MySQL
URL         : http://dev.mysql.com
Summary     : MySQL repository configuration for yum
Description :
Package for installation of setup/configuration files required for
installation of MySQL packages by yum.
$ sudo yum localinstall mysql57-community-release-el7-11.noarch.rpm
$ sudo yum install -y mysql-community-client
RaohRaoh

より短いバージョン。

$ sudo yum install -y https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
$ sudo yum install -y mysql-community-client
RaohRaoh

確認したAmazonLinux2。

$ cat /etc/system-release
Amazon Linux release 2 (Karoo)
$ uname -r
4.14.232-177.418.amzn2.x86_64
RaohRaoh

MySQL Clientのバージョン確認。

$ mysql -V
mysql  Ver 14.14 Distrib 5.7.35, for Linux (x86_64) using  EditLine wrapper
このスクラップは2021/07/22にクローズされました