英文:
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上遇到相同的问题,执行了以下步骤:
- 成为root用户。
- 然后编辑
/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
- 运行
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
。 - 运行
yum install mysql-community-server
。 - 最后运行
systemctl start mysqld
来启动服务器。
希望这能帮助你!
英文:
was having the same issue on AWS ec2, Performed the following steps:
- Become the root.
- 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
- run
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
- run
yum install mysql-community-server
- Finally, run
systemctl start mysqld
to start the server.
Hopefully, it helps!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论