最初是想安装percona-xtrabackup-debuginfo-2.2.12-1.el6.x86_64.rpm(mysql数据备份), 由此引发的一系列问题。
系统环境: CentOS release 6.3 (Final)
系统中已经安装了: MySQL-server-5.5.27-1.rhel5.x86_64
安装percona-xtrabackup-debuginfo-2.2.12-1.el6.x86_64.rpm
需要安装依赖包: perl-DBD-MySQL-4.013-3.el6.x86_64.rpm 和 mysql-libs.x86_64 0:5.1.73-5.el6_6.rpm
yum install perl-DBD-MySQL, 报错如下: 要安装的包mysql-libs-5.1.73与MySQL-server-5.5.27-1.rhel5.x86_64冲突
Transaction Check Error:
file /usr/share/mysql/charsets/README from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.5.27-1.rhel5.x86_64
file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.5.27-1.rhel5.x86_64
严重的问题是: 不能卸载MySQL-server-5.5.27-1.rhel5.x86_64,如果卸载MySQL-server-5.5.27再重新安装的话,则线上数据库将被破坏,需要重新恢复
解决方法: 安装MySQL-shared-compat-5.5.32-2.el6.x86_64.rpm
下载地址: ,
注意对应的操作系统,*系统版本(linux还是redhat linux)*,*32位还是64位* , rhel5还是el6
再重新安装perl-DBD-MySQL 不会报错
yum install perl-DBD-MySQL
再安装percona-xtrabackup-debuginfo-2.2.12-1.el6.x86_64.rpm
阅读(2574) | 评论(0) | 转发(0) |