首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能在Linux上安装Mysql -- Mysql网站失败了?

问不能在Linux上安装Mysql -- Mysql网站失败了?
EN

Server Fault用户
提问于 2019-03-12 21:40:23
回答 2查看 2K关注 0票数 1

我试图在Amazon 2上安装mysql。

亚马逊2ami- aws -如何在Amazon 2中安装mysql?

当我打字时:

代码语言:javascript
复制
sudo yum install mysql-community-server

我得到:

代码语言:javascript
复制
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                                                                               | 2.4 kB  00:00:00     
amzn2extra-docker                                                                                                        | 1.3 kB  00:00:00     
http://repo.mysql.com/yum/mysql-connectors-community/fc/2/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.


 One of the configured repositories failed (MySQL Connectors Community),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=mysql-connectors-community ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable mysql-connectors-community
        or
            subscription-manager repos --disable=mysql-connectors-community

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=mysql-connectors-community.skip_if_unavailable=true

failure: repodata/repomd.xml from mysql-connectors-community: [Errno 256] No more mirrors to try.
http://repo.mysql.com/yum/mysql-connectors-community/fc/2/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

所以,有一个404错误。我怎么才能避开这一切?

EN

回答 2

Server Fault用户

发布于 2019-03-13 01:21:50

你链接到的答案是错误的,尽管它在发布时可能是不小心起作用的。

MySQL不为Amazon提供RPM(1或2)。Amazon和Amazon 2不能保证与CentOS包兼容,也不能与任何其他发行版的包兼容。

如果需要使用这些包,还需要切换Linux发行版。

票数 2
EN

Server Fault用户

发布于 2019-05-19 16:45:42

迈克尔汉普顿是正确的,请参考受支持的平台https://www.mysql.com/support/supportedplatforms/database.html,如果您仍然想要尝试检查http://repo.mysql.com/yum/mysql-connectors-community/fc/这是索引mysql回购,并找到适当的连接器url为您回购。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/957977

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档