问题原文
原帖链接 · Jey Geethan · CC BY-SA 3.0
I am trying to install mysql in amazon linux 2 ami and am not able to do it.
sudo yum install mysql56-server -> doesn't work
amazon-linux-extras list -> doesn't list mysql
I do not want mariadb since I have more exposure to mysql (even if both are the same)
社区高分解答
原帖链接 · Jey Geethan · CC BY-SA 3.0
I got the answer myself. Follow the below steps:
sudo wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
sudo yum localinstall mysql57-community-release-el7-11.noarch.rpm
sudo yum install mysql-community-server
systemctl start mysqld.service
The key is to add the source repo and then install since Amazon Linux 2 doesn't have the default repos in place already.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
