如何用YUM安装Mysql 5.5版本

如何用YUM安装Mysql 5.5版本,第1张

第一步yum update wget 第二步安装Mysql1、查找有没有你想要的Mysql5.5 :yum search mysql552、安装Mysql服务器端: yum install -y mysql55 mysql55-server 3、如果报错,说已经存在了,那就移除已有的包:yum remove mysql mysql-server4、移除后,继续安装: yum install -y mysql55 mysql55-server 5、查看一下已安的和未安装的包 :ryum list mysql55现在就安装完了,可以启动了,哈哈

同样遇到这个问题,我也是醉了我以前是这样解决的如果报错:Error:mysql55-libsconflictswithmysql-libs-5.1.71-1.el6.x86_64wgetftp://mirror.switch.ch/pool/1/mirror/mysql/Downloads/MySQL-6.0/MySQL-shared-compat-6.0.11-0.glibc23.x86_64.rpmrpm-ihvMySQL-shared-compat-6.0.11-0.glibc23.x86_64.rpm文件MySQL-shared-compat-6.0.11-0.glibc23.x86_64.rpm如何无法下载:参照此

一、启用EPEL6 yum源:

1、RHEL/CentOS/SL Linux 6.x 下安装 EPEL6 yum源:

32位系统选择:

rpm -ivh download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

64位系统选择:

rpm -ivh download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

导入key:

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

2、默认会在/etc/yum.repos.d/下创建epel.repo和epel-testing.repo两个配置文件,epel.repo的内容如下:

[epel]

name=Extra Packages for Enterprise Linux 6 - $basearch

#baseurl=download.fedoraproject.org/pub/epel/6/$basearch

mirrorlist=mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch

failovermethod=priority

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]

name=Extra Packages for Enterprise Linux 6 - $basearch - Debug

#baseurldownload.fedoraproject.org/pub/epel/6/$basearch/debug

mirrorlist=mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch

failovermethod=priority

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

gpgcheck=1

[epel-source]

name=Extra Packages for Enterprise Linux 6 - $basearch - Source

#baseurl=download.fedoraproject.org/pub/epel/6/SRPMS

mirrorlist=mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch

failovermethod=priority

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

gpgcheck=1

如果想使用比较新的软件,可以启用[epel-testing]源,把里面的enabled=0改成enabled=1就可以。

3、yum安装nginx测试看看:

yum install nginx

二、启用remi的RHEL6 yum源:

1、RHEL/CentOS/SL Linux 6.x下安装remi的RHEL6 yum源:

rpm -ivh rpms.famillecollet.com/enterprise/remi-release-6.rpm

导入key:

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi

2、默认会在/etc/yum.repos.d/下创建remi.repo配置文件,remi.repo的内容如下:

[remi]

name=Les RPM de remi pour Enterprise Linux $releasever - $basearch

#baseurl=rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/

mirrorlist=rpms.famillecollet.com/enterprise/$releasever/remi/mirror

enabled=0

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

failovermethod=priority

[remi-test]

name=Les RPM de remi en test pour Enterprise Linux $releasever - $basearch

#baseurl=rpms.famillecollet.com/enterprise/$releasever/test/$basearch/

mirrorlist=rpms.famillecollet.com/enterprise/$releasever/test/mirror

enabled=0

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

3、yum安装MySQL 5.5看看:

yum --enablerepo=remi install mysql mysql-server

如果是升级MySQL,请用:

yum --enablerepo=remi update mysql mysql-server


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/6125635.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-15
下一篇 2023-03-15

发表评论

登录后才能评论

评论列表(0条)

保存