首页 > 代码库 > RPM包安装MySQL 5.7.18

RPM包安装MySQL 5.7.18

系统:

  CentOS 7 

RPM包: 

  mysql-community-client-5.7.18-1.el7.x86_64.rpm

  mysql-community-server-5.7.18-1.el7.x86_64.rpm

  mysql-community-common-5.7.18-1.el7.x86_64.rpm

  mysql-community-libs-5.7.18-1.el7.x86_64.rpm

  安装顺序:

    mysql-community-server 依赖 mysql-community-common 和 mysql-community-client

  注意:

    安装mysql之前要把系统上已有或之前安装的mysql相关文件和包清除。

    出现类似此错误:

 file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-5.5.28-1.linux2.6.x86_64 conflicts with file from package MySQL-server-5.1.7-0.i386

    证明之前系统上存在老版的mysql,可以运行:

    # rpm -e MySQL-server-5.1.7-0.i386 --nodeps 

    之后运行:

    # rpm -qa | grep mysql

    显示无结果后可进行安装自己下载好的mysql版本

    

 

RPM包安装MySQL 5.7.18