Install MySQL 8 server and client on Amazon Linux 2 Arm and x86_64

Install MySQL 8 server and client on Amazon Linux 2 aarch64 and x86_64

Install the epel repo

sudo amazon-linux-extras install epel -y

Install the MySQL Community repo

sudo yum install https://repo.mysql.com/mysql80-community-release-el7-5.noarch.rpm

Install the MySQL 8 server

This will automatically install the client

sudo yum install mysql-community-server

Install the MySQL 8 client

This command will directly install the client without installing the server

sudo yum install mysql-community-client