zoukankan      html  css  js  c++  java
  • percona-toolki安装冲突(my.cnf Percona-Server-shared与mysql-community-server)

    最近在安装percona-toolkit工具包时,提示在my.cnf文件中, Percona-Server-shared与mysql-community-server冲突。起初还以为是一定需安装Percona-Server-shared这样一个包才可以呢。Google了一下,原来是需要安装mysql-community-libs-compat 才可以搞定。下面是对这个问题展开描述。

    1、故障现象
    [root@centos7 ~]# yum install percona-toolkit -y

    Transaction check error:
    file /etc/my.cnf from install of Percona-Server-shared-56-5.6.40-rel84.0.el7.x86_64 conflicts with file from package mysql-community-server-5.7.23-1.el7.x86_64

    2、本地环境检查
    [root@centos7 ~]# more /etc/redhat-release
    CentOS Linux release 7.2.1511 (Core)
    [root@centos7 ~]# rpm -qa|grep -i mysql
    mysql-community-client-5.7.23-1.el7.x86_64
    mysql-community-common-5.7.23-1.el7.x86_64
    mysql-community-libs-5.7.23-1.el7.x86_64
    mysql-community-server-5.7.23-1.el7.x86_64
    通过上面的查看,确实没有libs-compat包安装到本机

    [root@centos7 ~]# yum list |grep -i mysql|grep libs-compat
    mysql-community-libs-compat.i686 5.7.23-1.el7 mysql57-community
    mysql-community-libs-compat.x86_64 5.7.23-1.el7 mysql57-community

    3、安装mysql-community-libs-compat
    [root@centos7 ~]# yum install mysql-community-libs-compat -y
    [root@centos7 ~]# yum install percona-toolkit -y
    Installed:
    percona-toolkit.x86_64 0:3.0.11-1.el7
    Complete!

    问题解决

    4、更多介绍
    mysql-community-libs-compat: Shared compatibility libraries for previous MySQL installations

    In most cases, you need to install the mysql-community-server, mysql-community-client, mysql-community-libs, mysql-community-common, and mysql-community-libs-compat packages to get a functional, standard MySQL installation. To perform such a standard, basic installation, go to the folder that contains all those packages (and, preferably, no other RPM packages with similar names), and issue the following command:
    Pasted from: https://dev.mysql.com/doc/refman/8.0/en/linux-installation-rpm.html

  • 相关阅读:
    条形码工具类
    带SSL证书的httpclient 远程接口工具类
    微信后台服务器配置 、第三方后台 验证服务器地址的有效性,判断请求来自微信服务器
    java获取当前文件路径 [转]
    python django model filter 条件过滤,及多表连接查询、反向查询,某字段的distinct[转]
    HTTP响应代码集合
    JSON类库Jackson与JSON-lib性能对比[转]
    JSR规范整理
    Oracle 查看执行计划
    java中最常用jar包的用途
  • 原文地址:https://www.cnblogs.com/EikiXu/p/10217931.html
Copyright © 2011-2022 走看看