原创

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 ~]#

正文到此结束
Loading...