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

  • 相关阅读:
    生成函数解决多重集合的计数问题
    kmp板子
    poj1001
    【题解】洛谷P1315 [NOIP2011TG] 观光公交(前缀和+贪心)
    【题解】洛谷P1941 [NOIP2014TG] 飞扬的小鸟(背包DP)
    【题解】洛谷P2679 [NOIP2015TG] 子串(DP+滚动数组)
    【题解】洛谷P1514 [NOIP2010TG] 引水入城(DFS+DP)
    【题解】洛谷P1052 [NOIP2005TG] 过河(DP+离散化)
    [arc063F]Snuke's Coloring 2-[线段树+观察]
    [agc001E]BBQ Hard[组合数性质+dp]
  • 原文地址:https://www.cnblogs.com/EikiXu/p/10217931.html
Copyright © 2011-2022 走看看