我知道,似乎有一个问题,围绕MariaDB回购的最近时间,它一直返回一个404未找到错误,在升级阶段的迁移从MySQL到MariaDB。
我一直在寻找不同的解决办法,虽然,我坚持与一些问题,我想知道是否有人可以建议?
我尝试在/etc/yum.repos.d/中更新我的repo配置文件中的baseurl路径-然而,在保存我在root用户级别所做的更改后,在从WHM运行“升级MySQL/MariaDB数据库”选项后,原始的baseurl会自动替换。
我已经尝试通过使用相关的yum --add-repo
命令添加额外的存储库,成功添加并启用了MariaDB 10.6存储库。但是,当我尝试从WHM重新运行升级时,升级过程继续搜索10.2版本,并尝试从原始的baseurl下载MariaDB(它继续默认返回到损坏的存储库url)
我只是想知道,是否有人可以与我分享任何指针,就如何让升级过程中,以认识到第二回购我添加了10.6(与工作镜像网址),而不是升级过程中自动识别破碎的MariaDB 10.2回购。
"只是一个简短的侧记"
我已经尝试禁用10.2的默认存储库,但是,在运行升级过程后,10.2软件包再次自动重新启用。
控制台日志的输出:
Restarting mysql service.
(XID ehvnfq) The “mysql” service is disabled.
The system was not able to ensure the availability of the “MariaDB-client” package: (XID httqu8) “/usr/bin/yum” reported error code “1” when it ended: https://yum.mariadb.org/10.2/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
One of the configured repositories failed (MariaDB102),
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=MariaDB102 ...
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 MariaDB102
or
subscription-manager repos --disable=MariaDB102
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=MariaDB102.skip_if_unavailable=true
failure: repodata/repomd.xml from MariaDB102: [Errno 256] No more mirrors to try.
https://yum.mariadb.org/10.2/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
非常感谢!:-)
2条答案
按热度按时间vwoqyblh1#
经过一整天的努力,我终于找到了一个将MySQL 5.7升级到MariaDB 10.6的解决方案(这也适用于任何想升级到早期版本的MariaDB的人)
请记住,此答案针对的是在CentOS 7上使用WHM/cPanel的用户。
解决方法
1.打开SSH并导航至
/etc/yum.repos.d/
1.复制默认的MariaDB102.repo文件(并将此文件复制5次,确保每个文件反映MariaDB从版本2及更高版本开始的每个版本,例如MariaDB 102-new.repo、MariaDB 103-new.repo、MariaDB 104-new.repo、MariaDB105.repo,最后是MariaDB106.repo
1.将默认MariaDB102.repo的原始内容复制到您创建的所有新5个文件中,确保您更改每个文件中的第二行,其中名称反映相应的版本,例如
name = MariaDB104
(确保在第一行,对于您编辑的每个文件,在方括号中,它仍为[MariaDB 102](假设MariaDB 102是服务器上的默认存储库)。
1.接下来,将每个文件中的baseurl更改为以下归档链接:https://archive.mariadb.org/mariadb-10.2/yum/centos7-amd64
(确保更改链接中的版本号,以反映MariaDB的相应版本。
1.通过运行以下命令
yum-config-manager --enable MariaDB10*
(确保将末尾的星号更改为版本号,并重复此步骤,直到所有存储库都已启用。1.运行
yum clean all
1.运行
yum makecache
1.从WHM重新运行“升级MySQL/MariaDB”,如果已正确遵循上述所有说明,则升级应成功配置!
(请记住,如果您只想升级到特定版本的MariaDB,请不要创建MariaDB 106-new.repo文件,如果您想升级到MariaDB 10.5(仅作为示例)
希望这至少能帮助到一些人!:-)
我终于到了!
jmo0nnb32#
刚刚为102做了,剩下的自行排序。但我刚刚升级到10. 3。
谢谢你的帮助...我们为Cpanel付了很多钱,但仍然要在stackoverflow中解决这些问题...