Skip to content

Instantly share code, notes, and snippets.

@sshymko
Last active March 14, 2024 20:10
Show Gist options
  • Save sshymko/63ee4e9bc685c59a6ff548f1573b9c74 to your computer and use it in GitHub Desktop.
Save sshymko/63ee4e9bc685c59a6ff548f1573b9c74 to your computer and use it in GitHub Desktop.
Install MySQL 5.7 client on Amazon Linux 2
#!/bin/sh
sudo yum install -y https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
sudo yum install -y mysql-community-client
@Agucho85
Copy link

Thanks!
It worked for Amazon Linux 2023.

@b-tin
Copy link

b-tin commented Feb 28, 2024

    const initScriptWrapper = `
      sudo yum install -y https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm; \
      sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022; \
      sudo yum install -y mysql-community-client; \
      sudo amazon-linux-extras install -y postgresql10;
    `;

Thanks, it worked for me with ami amzn2-ami-hvm-2.0.20240223.0-x86_64-gp2

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