我试图在Amazon 2上安装mysql。
亚马逊2ami- aws -如何在Amazon 2中安装mysql?
当我打字时:
sudo yum install mysql-community-server我得到:
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错误。我怎么才能避开这一切?
发布于 2019-03-13 01:21:50
你链接到的答案是错误的,尽管它在发布时可能是不小心起作用的。
MySQL不为Amazon提供RPM(1或2)。Amazon和Amazon 2不能保证与CentOS包兼容,也不能与任何其他发行版的包兼容。
如果需要使用这些包,还需要切换Linux发行版。
发布于 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为您回购。
https://serverfault.com/questions/957977
复制相似问题