无法在Centos 6.4 64bit中使用yum安装mysql / mysql-server

前端之家收集整理的这篇文章主要介绍了无法在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.

猜你在找的CentOS相关文章