centos无法yum安装mysql_无法在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*

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值