-
-
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 |
Worked for me, thanks!
@fosstechnix
Please stop posting spam comments with broken links to your website duplicating the official MySQL docs.
Moreover, this Gist is about installation of MySQL client, not MySQL server.
Deleted your comment once again.
👍
great!
thanks
Thanks @sshymko, this worked for me. Why do we need both commands? I had tried the second command previously and got issues with GLIBC versions; but now after running the first command, everything works!
@bdforbes
The first command adds an RPM repository to install the MySQL client along with all its dependencies from.
Thanks, I didn't realise that's how yum
works.
https://gist.github.com/SomeCallMeTom/d8848a1f26457f91f107545979bfa04a
Updated for 8.0 yum repo
superb, thanks
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
Documentation:
https://dev.mysql.com/doc/mysql-repo-excerpt/5.7/en/linux-installation-yum-repo.html