Skip to content

Instantly share code, notes, and snippets.

@SomeCallMeTom
Forked from sshymko/install_mysql_client.sh
Last active May 17, 2024 08:49
Show Gist options
  • Save SomeCallMeTom/d8848a1f26457f91f107545979bfa04a to your computer and use it in GitHub Desktop.
Save SomeCallMeTom/d8848a1f26457f91f107545979bfa04a to your computer and use it in GitHub Desktop.
Install MySQL 8.0 client on Amazon Linux 2
#!/bin/sh
sudo yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
sudo yum install -y mysql-community-client
@dannybrody
Copy link

if you get the following error:

 Failing package is: mysql-community-client-8.0.28-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

run

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

to fix it

@ArchitecTexture
Copy link

add a 'sudo' in front of the GPG key import

@coolpie72
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment