CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了无法在Centos 6.4 64bit中使用yum安装mysql / mysql-server大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

它最初工作(yum install mysql mysql-server),现在它不会. 我从repo中删除了工作mysql,用yum删除mysql mysql-server,并尝试从mysql网站的rpm源安装,但它失败了. 所以我删除了rpm安装,然后通过yum重新安装,它说包不可用,我该怎么办?我已经尝试更改回购,做yum更新等,恢复我的更改,再次进行yum更新,无济于事. root@ns5
它最初工作(yum install mysql mysql-server),现在它不会.

我从repo中删除了工作MysqL,用yum删除MysqL MysqL-server,并尝试从MysqL网站的rpm源安装,但它失败了.

所以我删除了rpm安装,然后通过yum重新安装,它说包不可用,我该怎么办?我已经尝试更改回购,做yum更新等,恢复我的更改,再次进行yum更新,无济于事.

root@ns5000967 [/home/alex]# yum install MysqL MysqL-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: less.cogeco.net
 * epel: epel.mirror.constant.com
 * extras: centos.bhs.mirrors.ovh.net
 * rpmforge: mirror.rit.edu
 * updates: mirror.agmn.ca
SetTing up Install Process
No package MysqL available.
No package mysq-server available.
Error: Nothing to do

yum搜索MysqL最值得注意的事情

MysqL51-client.x86_64 : MysqL - Client
MysqL51-devel.x86_64 : MysqL - Development header files and libraries
MysqL51-server.x86_64 : MysqL - a very fast and reliable sql database server
MysqL51-shared.x86_64 : MysqL - Shared libraries
MysqL51-test.x86_64 : MysqL - Test suite

运行
yum安装MysqL51客户端MysqL51服务器

我的尝试仍然失败.
马上:

root@ns5000967 [/home/alex]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base epel extras rpmforge updates
Cleaning up Everything
Cleaning up list of fastest mirrors

root@ns5000967 [/home/alex]# yum list MysqL MysqL-server
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/Metalink                                                                               |  13 kB     00:00
 * base: less.cogeco.net
 * epel: epel.mirror.constant.com
 * extras: centos.bhs.mirrors.ovh.net
 * rpmforge: mirror.rit.edu
 * updates: centos.mirror.gtcomm.net
base                                                                                              | 3.7 kB     00:00
base/priMary_db                                                                                   | 4.4 MB     00:00
epel                                                                                              | 4.2 kB     00:00
epel/priMary_db                                                                                   | 5.5 MB     00:00
extras                                                                                            | 3.4 kB     00:00
extras/priMary_db                                                                                 |  18 kB     00:00
rpmforge                                                                                          | 1.9 kB     00:00
rpmforge/priMary_db                                                                               | 2.6 MB     00:08
updates                                                                                           | 3.4 kB     00:00
updates/priMary_db                                                                                 | 4.4 MB     00:00
Error: No matching Packages to list

/etc/yum.conf中

[main]
exclude=bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* MysqL* nsd* PHP* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
tolerant=1
errorlevel=1
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.PHP?     project_id=16&ref=http://bugs.centos.org/bug_report_page.PHP?category=yum
distroverpkg=centos-release

root@ns5000967 [/home/alex]# ls /etc/yum.repos.d/*
/etc/yum.repos.d/CentOS-Base.repo       /etc/yum.repos.d/CentOS-Media.repo       /etc/yum.repos.d/epel.repo          /etc/yum.repos.d/mirrors-rpmforge             /etc/yum.repos.d/mirrors-rpmforge-tesTing  /etc/yum.repos.d/rpmforge.repo
/etc/yum.repos.d/CentOS-Debuginfo.repo  /etc/yum.repos.d/CentOS-Vault.repo       /etc/yum.repos.d/epel-tesTing.repo  /etc/yum.repos.d/mirrors-rpmforge-extras      /etc/yum.repos.d/remi.repo

当我进行repo更改时,我将备份备份到备份目录.当我解除更改时,我从备份中复制了回购.

如果它仍然可能是仓库存托问题,我会按照建议进行调查/检查它们是否合适.

解:

在/etc/yum.conf中它有排除列表MysqL. yoonix能够为我指出这一点,我看了.

exclude=bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* MysqL* nsd* PHP* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
@H_@R_673_11239@_56@
查看你的yum.conf,特别是[main]部分中的’excludes’行.它专门列出了’MysqL *’.

大佬总结

以上是大佬教程为你收集整理的无法在Centos 6.4 64bit中使用yum安装mysql / mysql-server全部内容,希望文章能够帮你解决无法在Centos 6.4 64bit中使用yum安装mysql / mysql-server所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。