1
1

More than 1 year has passed since last update.

【2022年版】【AWS EC2】Amazon Linux2にMySQLのclientだけをインストールする方法

Posted at

Amazon Linux2にMysqlClientをインストールする方法です。
対象はEC2 Amazon linux2のx86/64です。

sudo yum localinstall -y https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
sudo yum-config-manager --disable mysql57-community
sudo yum-config-manager --enable mysql80-community

rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

sudo yum install mysql-community-client

鍵が古いと警告が出るようですので、rpm --importが必要なようです。

[ec2-user@hogehoge-ec2 ~]$ mysql --version
mysql  Ver 8.0.31 for Linux on x86_64 (MySQL Community Server - GPL)

以下を参考にさせていただきました。

1
1
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
1
1