安装rpm包:MySQL-community-client-5.7.13-1.el7.x86_64.rpm
报错如下:
/home/mysql>sudo rpm -ivh mysql-community-client-5.7.13-1.el7.x86_64.rpm
[sudo] password for *****:
warning: mysql-community-client-5.7.13-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-community-libs(x86-64) >= 5.7.9 is needed by mysql-community-client-5.7.13-1.el7.x86_64
mariadb is obsoleted by mysql-community-client-5.7.13-1.el7.x86_64
解决办法:安装包后面增加2个参数(安装时不再分析包之间的依赖关系而直接安装)
/home/mysql>sudo rpm -ivh mysql-community-client-5.7.13-1.el7.x86_64.rpm --nodeps --force
[sudo] password for ******:
warning: mysql-community-client-5.7.13-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:mysql-community-client-5.7.13-1.e##################### ( 63%)
/usr/include/mysql
/usr/lib64/mysql