1、Adding the MySQL Yum Repository

rpm -Uvh mysql-community-release-el6-5.noarch.rpm

2、

yum repolist all | grep mysql
yum repolist enabled | grep mysql

3、yum update mysql-server


单独升级先查看

 yum list installed | grep "^mysql"


再一个一个升级



备注:



Installed:

  mysql-community-client.x86_64 0:5.6.34-2.el6

  mysql-community-devel.x86_64 0:5.6.34-2.el6

  mysql-community-libs.x86_64 0:5.6.34-2.el6

  mysql-community-libs-compat.x86_64 0:5.6.34-2.el6

  mysql-community-server.x86_64 0:5.6.34-2.el6

Dependency Installed:

  mysql-community-common.x86_64 

Replaced:

  mysql.x86_64 0:5.1.73-5.el6_6

  mysql-devel.x86_64

  mysql-libs.x86_64 0:5.1.73-5.el6_6

  mysql-server.x86_64 0:5.1.73-5.el6_6

Complete!