-
-
Save sshymko/63ee4e9bc685c59a6ff548f1573b9c74 to your computer and use it in GitHub Desktop.
#!/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 |
As of 2022, you are required to import the latest GPG key using: sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
Thanks to @SomeCallMeTom for pointing that out in his gist.
sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
thanks bro, its working
sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
Thanks @alxgrk it's working fine.🙌🏻
Thanks man
I get:
Cannot open: https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm. Skipping.
I get:
Cannot open: https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm. Skipping.
First download it manually:
wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
Then install it from the locally downloaded file:
sudo yum install mysql57-community-release-el7-11.noarch.rpm
I had the same issue last week. Not sure why yum can't download it
Thanks!
It worked for Amazon Linux 2023.
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
superb, thanks