crentso7.4下rpm方式安装MySQL5.7.22出现安装冲突conflicts的解决办法
安装mysql报错:
[root@bogon ~]# rpm -ivh mysql*.rpm --nodeps
warning: mysql57-community-release-el7-9.noarch.rpm: header v3 dsa/sha1 signature, key id 5072e1f5: nokey
preparing... ################################# [100%]
file /etc/my.cnf conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/bin/my_print_defaults conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/bin/mysql conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-client-5.7.22-1.el7.x86_64
file /usr/bin/mysql_config conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-devel-5.7.22-1.el7.x86_64
file /usr/bin/mysql_install_db conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/bin/mysql_ssl_rsa_setup conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/bin/mysql_tzinfo_to_sql conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/bin/mysql_upgrade conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/bin/mysqladmin conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-client-5.7.22-1.el7.x86_64
file /usr/bin/mysqldump conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-client-5.7.22-1.el7.x86_64
file /usr/bin/mysqlpump conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-client-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/adt_null.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/auth_socket.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/authentication_ldap_sasl_client.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/connection_control.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/group_replication.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/innodb_engine.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/keyring_file.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/keyring_udf.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/libmemcached.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/locking_service.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/mypluglib.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/mysql_no_login.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/mysqlx.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/rewrite_example.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/rewriter.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/semisync_master.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/semisync_slave.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/validate_password.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/lib64/mysql/plugin/version_token.so conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /usr/sbin/mysqld conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
file /var/lib/mysql conflicts between attempted installs of mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-server-5.7.22-1.el7.x86_64
这二个安装包冲突了,所以就不要安装这个包mysql-community-server-minimal-5.7.22-1.el7.x86_64了,mysql-community-server-minimal-5.7.22-1.el7.x86_64 and mysql-community-devel-5.7.22-1.el7.x86_64冲突了。
改个名字:安装的时候不安装这个包
[root@bogon ~]# mv mysql-community-server-minimal-5.7.22-1.el7.x86_64.rpm 1_mysql-community-server-minimal-5.7.22-1.el7.x86_64.rpm
[root@bogon ~]# ll
total 1190272
-rw-r--r--. 1 7155 31415 15255560 mar 5 10:25 mysql-community-server-minimal-5.7.22-1.el7.x86_64.rpm_bak
-rw-------. 1 root root 1800 jul 1 14:22 anaconda-ks.cfg
drwxr-xr-x. 2 root root 6 jul 1 15:49 desktop
drwxr-xr-x. 2 root root 6 jul 1 15:49 documents
drwxr-xr-x. 2 root root 6 jul 1 15:49 downloads
-rw-r--r--. 1 root root 1848 jul 1 15:35 initial-setup-ks.cfg
drwxr-xr-x. 2 root root 6 jul 1 15:49 music
-rw-r--r--. 1 root root 598026240 mar 5 10:44 mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar
-rw-r--r--. 1 root root 9224 sep 12 2016 mysql57-community-release-el7-9.noarch.rpm
-rw-r--r--. 1 7155 31415 25106088 mar 5 10:24 mysql-community-client-5.7.22-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 280800 mar 5 10:24 mysql-community-common-5.7.22-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 3781636 mar 5 10:24 mysql-community-devel-5.7.22-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 46742952 mar 5 10:24 mysql-community-embedded-5.7.22-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 24078476 mar 5 10:24 mysql-community-embedded-compat-5.7.22-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 129955496 mar 5 10:24 mysql-community-embedded-devel-5.7.22-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 2239868 mar 5 10:24 mysql-community-libs-5.7.22-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 2116356 mar 5 10:24 mysql-community-libs-compat-5.7.22-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 55743828 mar 5 10:24 mysql-community-minimal-debuginfo-5.7.22-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 172992596 mar 5 10:25 mysql-community-server-5.7.22-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 119716756 mar 5 10:25 mysql-community-test-5.7.22-1.el7.x86_64.rpm
-rwxrwxrwx. 1 root root 2698 jul 1 16:38 mysql_conn.py
drwxr-xr-x. 2 root root 6 jul 1 15:49 pictures
drwxr-xr-x. 2 root root 6 jul 1 15:49 public
drwxr-xr-x. 19 501 501 4096 jul 1 16:34 python-3.7.0
-rw-r--r--. 1 root root 22745726 jun 27 14:06 python-3.7.0.tgz
drwxr-xr-x. 2 root root 6 jul 1 15:49 templates
drwxr-xr-x. 2 root root 6 jul 1 15:49 videos
不安装包:mysql-community-server-minimal-5.7.22-1.el7.x86_64.rpm
参数--nodeps
[root@bogon ~]# rpm -ivh mysql*.rpm --nodeps
warning: mysql57-community-release-el7-9.noarch.rpm: header v3 dsa/sha1 signature, key id 5072e1f5: nokey
preparing... ################################# [100%]
updating / installing...
1:mysql-community-common-5.7.22-1.e################################# [ 8%]
2:mysql-community-libs-5.7.22-1.el7################################# [ 17%]
3:mysql-community-client-5.7.22-1.e################################# [ 25%]
4:mysql-community-server-5.7.22-1.e################################# [ 33%]
5:mysql-community-devel-5.7.22-1.el################################# [ 42%]
6:mysql-community-embedded-5.7.22-1################################# [ 50%]
7:mysql-community-embedded-devel-5.################################# [ 58%]
8:mysql-community-test-5.7.22-1.el7################################# [ 67%]
9:mysql-community-libs-compat-5.7.2################################# [ 75%]
10:mysql-community-embedded-compat-5################################# [ 83%]
11:mysql-community-minimal-debuginfo################################# [ 92%]
12:mysql57-community-release-el7-9 ################################# [100%]
[root@bogon ~]#
上一篇: 割点