we have an EC2 instance running the following
I need to install MySQL 5.6 but am getting confused with all the Yum repos available at
http://dev.mysql.com/downloads/repo/
when i run the following shell command
cat /proc/version
it gives me
Linux version 3.4.73-64.112.amzn1.x86_64 (mockbuild@gobi-build-31003) (gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC) )
so... RHEL 4 !?
If i was to take an educated guess based on
https://forums.aws.amazon.com/thread.jspa?threadID=51647&tstart=0#194519
...it would be the RHEL 6 repo, right ?
tried the RHEL 6 repo and it worked fine.
UPDATE:
to get the system info on Amazon Linux AMI try:
cat /etc/os-release
which should give you something simlar to:
NAME="Amazon Linux AMI"
VERSION="2016.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.03"
PRETTY_NAME="Amazon Linux AMI 2016.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2016.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
Note the ID_LIKE="rhel fedora"
which seems to indicate that RHEL should work fine.
In addition, apparently AMI is based on RHEL (yes that doesn't help with the version):
https://en.wikipedia.org/wiki/Amazon_Machine_Image#Amazon_Linux_AMI
For installation instructions see:
https://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html