无法在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@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*
查看你的yum.conf,特别是[main]部分中的’excludes’行.它专门列出了’mysql *’.

exclude: List of packages to exclude from updates or installs. This should be a space separated list. Shell globs using wildcards (eg. * and ?) are allowed.

相关文章

文章浏览阅读903次。4.清除缓存目录(/var/cache/yum)下的软件...
文章浏览阅读1.5k次。Python 是一种高级解释性编程语言,已被...
文章浏览阅读2.6k次。打开终端或控制台,以root或具有sudo权...
文章浏览阅读744次,点赞24次,收藏26次。目标:通过AppSrv为...
文章浏览阅读1.1w次,点赞8次,收藏26次。chmod命令来自于英...
文章浏览阅读1.2k次。yum源的URL地址,本例中是文件系统的路...