Trying to install mysql-server on AWS EC2 Amazon Linux, but getting Problem: conflicting requests.

huangapple go评论64阅读模式
英文:

Trying to install mysql-server on AWS EC2 Amazon Linux, but getting Problem: conflicting requests

问题

I am new to AWS, trying to setup MySQL on EC2.
我是新手在AWS上尝试在EC2上设置MySQL。

I enter sudo yum install mysql-server
我输入 sudo yum install mysql-server

and this following error appears, with a lot more lines.
然后出现以下错误,还有更多的行。

Error:
错误:

Problem: conflicting requests
问题:冲突的请求

  • nothing provides libcrypto.so.10()(64bit) needed by mysql-community-server-8.0.11-1.el7.x86_64

  • mysql-community-server-8.0.11-1.el7.x86_64需要 libcrypto.so.10()(64bit),但没有提供

  • nothing provides libssl.so.10()(64bit) needed by mysql-community-server-8.0.11-1.el7.x86_64

  • mysql-community-server-8.0.11-1.el7.x86_64需要 libssl.so.10()(64bit),但没有提供

I enter sudo yum install mysql-server to install mysql.
我输入 sudo yum install mysql-server 来安装MySQL。

英文:

I am new to AWS, trying to setup MySQL on EC2.
I enter sudo yum install mysql-server
and this following error appears, with a lot more lines.
Error:
Problem: conflicting requests

  • nothing provides libcrypto.so.10()(64bit) needed by mysql-community-server-8.0.11-1.el7.x86_64
  • nothing provides libssl.so.10()(64bit) needed by mysql-community-server-8.0.11-1.el7.x86_64

I enter sudo yum install mysql-server to install mysql.

答案1

得分: 2

在AWS EC2上遇到相同的问题,执行了以下步骤:

  1. 成为root用户。
  2. 然后编辑 /etc/yum.repos.d/mysql.repo 文件,并添加以下内容:
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
  1. 运行 rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
  2. 运行 yum install mysql-community-server
  3. 最后运行 systemctl start mysqld 来启动服务器。

希望这能帮助你!

英文:

was having the same issue on AWS ec2, Performed the following steps:

  1. Become the root.
  2. Then vi /etc/yum.repos.d/mysql.repo and added
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
  1. run rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
  2. run yum install mysql-community-server
  3. Finally, run systemctl start mysqld to start the server.

Hopefully, it helps!

huangapple
  • 本文由 发表于 2023年6月13日 11:12:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/76461475.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定