I am trying to install Mysql 5.7 on AWS Lightsail Amazon Linux, but facing error. It is latest VM with OS Only ( Linux / Unix blue prints) in Sydney, Zone A. I don't want to use per-installed LAMP with mysql.
I have followed below steps.
First of all, I have installed latest updates.
sudo yum update -y
Output
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package ec2-net-utils.noarch 0:0.5-3.36.amzn1 will be updated
---> Package ec2-net-utils.noarch 0:0.6-1.1.amzn1 will be an update
---> Package ec2-utils.noarch 0:0.5-3.36.amzn1 will be updated
---> Package ec2-utils.noarch 0:0.6-1.1.amzn1 will be an update
---> Package kernel.x86_64 0:4.14.165-102.185.amzn1 will be installed
---> Package python27-pip.noarch 0:9.0.3-1.26.amzn1 will be updated
---> Package python27-pip.noarch 0:9.0.3-1.27.amzn1 will be an update
---> Package sudo.x86_64 0:1.8.6p3-29.28.amzn1 will be updated
---> Package sudo.x86_64 0:1.8.6p3-29.29.amzn1 will be an update
--> Finished Dependency Resolution
When I try to install mysql with yum, it shows Mysql 5.5 by default
============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
mysql noarch 5.5-1.6.amzn1 amzn-main 2.7 k
Installing for dependencies:
mysql-config x86_64 5.5.62-1.23.amzn1 amzn-updates 49 k
mysql55 x86_64 5.5.62-1.23.amzn1 amzn-updates 7.5 M
mysql55-libs x86_64 5.5.62-1.23.amzn1 amzn-updates 816 k
Transaction Summary
============================================================================================================================================
Yum shows below existing package with yum info command.
sudo yum info mysql
Loaded plugins: priorities, update-motd, upgrade-helper
Available Packages
Name : mysql
Arch : noarch
Version : 5.5
Release : 1.6.amzn1
Size : 2.7 k
Repo : amzn-main/latest
Summary : MySQL meta package
URL : http://www.mysql.com
License : GPLv2 with exceptions
Description : MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
: client/server implementation consisting of a server daemon (mysqld)
: and many different client programs and libraries. The base package
: contains the standard MySQL client programs and generic MySQL files.
Then I downloaded and tried to install mysql 5.7 from rpm.
sudo wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
sudo yum localinstall mysql57-community-release-el7-11.noarch.rpm
Output
Dependencies Resolved
============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
mysql57-community-release noarch el7-11 /mysql57-community-release-el7-11.noarch 31 k
Transaction Summary
============================================================================================================================================
Installed:
mysql57-community-release.noarch 0:el7-11
Repo is installed, but when I try to install mysql-community-server, it shows dependencies errors.
sudo yum install mysql-community-server
Output
31 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.7.29-1.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.7.29-1.el7 for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: libsasl2.so.3()(64bit) for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.7.29-1.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-client-5.7.29-1.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.7.29-1.el7 will be installed
---> Package mysql-community-server.x86_64 0:5.7.29-1.el7 will be installed
--> Processing Dependency: systemd for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: libsasl2.so.3()(64bit) for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.7.29-1.el7 will be installed
---> Package mysql-community-server.x86_64 0:5.7.29-1.el7 will be installed
--> Processing Dependency: systemd for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: libsasl2.so.3()(64bit) for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-community-server-5.7.29-1.el7.x86_64 (mysql57-community)
Requires: systemd
Error: Package: mysql-community-server-5.7.29-1.el7.x86_64 (mysql57-community)
Requires: libsasl2.so.3()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have installed Mysql 5.7 on latest Linux2 EC2 AMIs with the same way. I am connecting the VM via SSH key pair and the VM is not on Static LIVE IP. Please help me and see what am I missing?