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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MySQL 5.7.22安装过程如下所示:首先,你需要从MySQL官方网站下载MySQL 5.7.22安装文件。你可以点击链接来下载。接下来,你需要根据你的操作系统选择合适的安装文件,并按照安装向导的指引完成安装安装完成后,你需要进行一些配置操作才能正常使用MySQL 5.7.22。其中,你需要在配置文件my.ini中的[mysqld]部分添加skip-grant-tables参数,这样可以跳过授权验证。你可以将该参数添加到my.ini文件的[mysqld]下方。具体操作可以参考引用中的内容。此外,你还需要创建一个名为my.ini的文件,并在其中添加一些配置信息,如设置端口、安装目录、数据存放目录等。你可以参考引用中的内容来编写my.ini文件。完成这些操作后,你就可以启动MySQL 5.7.22并开始使用了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [安装MySQL 5.7.22](https://blog.csdn.net/weixin_42228939/article/details/81159156)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Win10 安装 压缩版MySQL 5.7.22教程](https://blog.csdn.net/m31415927/article/details/92559377)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值