CentOS-5 yum安装mysql-5.5/5.1

centos-5的源默认提供mysql-5.0的rpm包,这有点旧了,下面由www.centos.bz提供yum安装mysql-5.5/5.1的方法
1、导入第三方源webtatic

  1. rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm

2、安装MySQL client

  1. yum install libmysqlclient15 --enablerepo=webtatic

3、删除存在的mysql

  1. yum remove mysql mysql-*

4、安装mysql
mysql-5.5:

  1. yum install mysql55 mysql55-server --enablerepo=webtatic

mysql-5.1:

  1. yum install mysql51 mysql51-server --enablerepo=webtatic

5、启动并升级mysql

  1. service mysqld start
  2. mysql_upgrade
标签:MySQLCentosYum 发布于:2019-11-23 13:33:15