[root@localhost tempfile]# yum install -y mysql*.rpm
上次元数据过期检查:2:19:32 前,执行于 2022年11月16日 星期三 09时31分32秒。
错误:
问题 1: 冲突的请求
- 没有东西可提供 libncurses.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libtinfo.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
问题 2: 冲突的请求
- 没有东西可提供 libcrypto.so.10()(64bit)(mysql-community-embedded-compat-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libcrypto.so.10(libcrypto.so.10)(64bit)(mysql-community-embedded-compat-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libssl.so.10()(64bit)(mysql-community-embedded-compat-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libssl.so.10(libssl.so.10)(64bit)(mysql-community-embedded-compat-5.7.39-1.el7.x86_64 需要)
问题 3: 冲突的请求
- 没有东西可提供 libcrypto.so.10()(64bit)(mysql-community-libs-compat-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libcrypto.so.10(libcrypto.so.10)(64bit)(mysql-community-libs-compat-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libssl.so.10()(64bit)(mysql-community-libs-compat-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libssl.so.10(libssl.so.10)(64bit)(mysql-community-libs-compat-5.7.39-1.el7.x86_64 需要)
问题 4: 软件包 mysql-community-server-5.7.39-1.el7.x86_64 需要 mysql-community-client(x86-64) >= 5.7.9,但没有提供者可以被安装
- 冲突的请求
- 没有东西可提供 libncurses.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libtinfo.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
问题 5: 软件包 mysql-community-test-5.7.39-1.el7.x86_64 需要 mysql-community-server(x86-64) >= 5.7.9,但没有提供者可以被安装
- 软件包 mysql-community-server-5.7.39-1.el7.x86_64 需要 mysql-community-client(x86-64) >= 5.7.9,但没有提供者可以被安装
- 冲突的请求
- 没有东西可提供 libncurses.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libtinfo.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
(尝试添加 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用软件包的最佳候选)
[root@localhost tempfile]# wget https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/Packages/c/compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm
--2022-11-16 12:52:32-- https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/Packages/c/compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm
正在解析主机 dl.rockylinux.org (dl.rockylinux.org)... 151.101.42.132, 2a04:4e42:6::644
正在连接 dl.rockylinux.org (dl.rockylinux.org)|151.101.42.132|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:1182640 (1.1M) [application/x-redhat-package-manager]
正在保存至: “compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm”
compat-openssl10-1. 100%[===================>] 1.13M 130KB/s 用时 7.4s
2022-11-16 12:52:44 (157 KB/s) - 已保存 “compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm” [1182640/1182640])
[root@localhost tempfile]# ls
compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm
mysql-5.7.39-1.el7.x86_64.rpm-bundle.tar
mysql-community-client-5.7.39-1.el7.x86_64.rpm
mysql-community-common-5.7.39-1.el7.x86_64.rpm
mysql-community-devel-5.7.39-1.el7.x86_64.rpm
mysql-community-embedded-5.7.39-1.el7.x86_64.rpm
mysql-community-embedded-compat-5.7.39-1.el7.x86_64.rpm
mysql-community-embedded-devel-5.7.39-1.el7.x86_64.rpm
mysql-community-libs-5.7.39-1.el7.x86_64.rpm
mysql-community-libs-compat-5.7.39-1.el7.x86_64.rpm
mysql-community-release-el7-7.noarch.rpm
mysql-community-server-5.7.39-1.el7.x86_64.rpm
mysql-community-test-5.7.39-1.el7.x86_64.rpm
[root@localhost tempfile]# dnf install compat-openssl10
上次元数据过期检查:3:21:26 前,执行于 2022年11月16日 星期三 09时31分32秒。
未找到匹配的参数: compat-openssl10
错误:没有任何匹配: compat-openssl10
[root@localhost tempfile]# rpm -ivhcompat-openssl10-1.0.2o-4.el8_6.x86_64.rpm
rpm: -ivhcompat-openssl10-1.0.2o-4.el8_6.x86_64.rpm: 未知的选项
[root@localhost tempfile]# rpm -ivh compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm
警告:compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 6d745a60: NOKEY
Verifying... ################################# [100%]
准备中... ################################# [100%]
正在升级/安装...
1:compat-openssl10-1:1.0.2o-4.el8_6################################# [100%]
[root@localhost tempfile]# yum install compat-openssl10
上次元数据过期检查:3:23:24 前,执行于 2022年11月16日 星期三 09时31分32秒。
软件包 compat-openssl10-1:1.0.2o-4.el8_6.x86_64 已安装。
依赖关系解决。
无需任何处理。
完毕!
[root@localhost tempfile]# yum install -y mysql*.rpm
上次元数据过期检查:3:23:53 前,执行于 2022年11月16日 星期三 09时31分32秒。
错误:
问题 1: 冲突的请求
- 没有东西可提供 libncurses.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libtinfo.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
问题 2: 软件包 mysql-community-server-5.7.39-1.el7.x86_64 需要 mysql-community-client(x86-64) >= 5.7.9,但没有提供者可以被安装
- 冲突的请求
- 没有东西可提供 libncurses.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libtinfo.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
问题 3: 软件包 mysql-community-test-5.7.39-1.el7.x86_64 需要 mysql-community-server(x86-64) >= 5.7.9,但没有提供者可以被安装
- 软件包 mysql-community-server-5.7.39-1.el7.x86_64 需要 mysql-community-client(x86-64) >= 5.7.9,但没有提供者可以被安装
- 冲突的请求
- 没有东西可提供 libncurses.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
- 没有东西可提供 libtinfo.so.5()(64bit)(mysql-community-client-5.7.39-1.el7.x86_64 需要)
(尝试添加 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用软件包的最佳候选)
[root@localhost tempfile]# ^C
[root@localhost tempfile]# wget https://dl.rockylinux.org/pub/rocky/9/devel/x86_64/os/Packages/n/ncurses-compat-libs-6.2-8.20210508.el9.x86_64.rpm
--2022-11-16 12:56:31-- https://dl.rockylinux.org/pub/rocky/9/devel/x86_64/os/Packages/n/ncurses-compat-libs-6.2-8.20210508.el9.x86_64.rpm
正在解析主机 dl.rockylinux.org (dl.rockylinux.org)... 151.101.26.132, 2a04:4e42:a::644
正在连接 dl.rockylinux.org (dl.rockylinux.org)|151.101.26.132|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:326602 (319K) [application/x-redhat-package-manager]
正在保存至: “ncurses-compat-libs-6.2-8.20210508.el9.x86_64.rpm”
ncurses-compat-libs 100%[===================>] 318.95K 558KB/s 用时 0.6s
2022-11-16 12:56:33 (558 KB/s) - 已保存 “ncurses-compat-libs-6.2-8.20210508.el9.x86_64.rpm” [326602/326602])
[root@localhost tempfile]# ls
compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm
mysql-5.7.39-1.el7.x86_64.rpm-bundle.tar
mysql-community-client-5.7.39-1.el7.x86_64.rpm
mysql-community-common-5.7.39-1.el7.x86_64.rpm
mysql-community-devel-5.7.39-1.el7.x86_64.rpm
mysql-community-embedded-5.7.39-1.el7.x86_64.rpm
mysql-community-embedded-compat-5.7.39-1.el7.x86_64.rpm
mysql-community-embedded-devel-5.7.39-1.el7.x86_64.rpm
mysql-community-libs-5.7.39-1.el7.x86_64.rpm
mysql-community-libs-compat-5.7.39-1.el7.x86_64.rpm
mysql-community-release-el7-7.noarch.rpm
mysql-community-server-5.7.39-1.el7.x86_64.rpm
mysql-community-test-5.7.39-1.el7.x86_64.rpm
ncurses-compat-libs-6.2-8.20210508.el9.x86_64.rpm
[root@localhost tempfile]# rpm -ivh ncurses-compat-libs-6.2-8.20210508.el9.x86_64.rpm
Verifying... ################################# [100%]
准备中... ################################# [100%]
正在升级/安装...
1:ncurses-compat-libs-6.2-8.2021050################################# [100%]
[root@localhost tempfile]# dnf --enablerepo=devel install ncurses-compat-libs
Rocky Linux 9 - Devel WARNING! FOR BUILDROOT ON 510 kB/s | 11 MB 00:22
上次元数据过期检查:0:00:09 前,执行于 2022年11月16日 星期三 12时57分41秒。
软件包 ncurses-compat-libs-6.2-8.20210508.el9.x86_64 已安装。
依赖关系解决。
无需任何处理。
完毕!
[root@localhost tempfile]# yum install -y mysql*.rpm 上次元数据过期检查:3:26:38 前,执行于 2022年11月16日 星期三 09时31分32秒。
依赖关系解决。
================================================================================
软件包 架构 版本 仓库 大小
================================================================================
安装:
mysql-community-client x86_64 5.7.39-1.el7 @commandline 28 M
mysql-community-common x86_64 5.7.39-1.el7 @commandline 311 k
mysql-community-devel x86_64 5.7.39-1.el7 @commandline 4.2 M
mysql-community-embedded x86_64 5.7.39-1.el7 @commandline 46 M
mysql-community-embedded-compat x86_64 5.7.39-1.el7 @commandline 22 M
mysql-community-embedded-devel x86_64 5.7.39-1.el7 @commandline 127 M
mysql-community-libs x86_64 5.7.39-1.el7 @commandline 2.6 M
mysql-community-libs-compat x86_64 5.7.39-1.el7 @commandline 1.2 M
mysql-community-release noarch el7-7 @commandline 8.7 k
mysql-community-server x86_64 5.7.39-1.el7 @commandline 178 M
mysql-community-test x86_64 5.7.39-1.el7 @commandline 121 M
安装依赖关系:
perl-JSON noarch 4.03-5.el9 appstream 95 k
事务概要
================================================================================
安装 12 软件包
总计:530 M
总下载:95 k
安装大小:2.7 G
下载软件包:
[MIRROR] perl-JSON-4.03-5.el9.noarch.rpm: Curl error (52): Server returned nothing (no headers, no data) for http://mirror.nju.edu.cn/rocky/9.0/AppStream/x86_64/os/Packages/p/perl-JSON-4.03-5.el9.noarch.rpm [Empty reply from server]
perl-JSON-4.03-5.el9.noarch.rpm 5.0 kB/s | 95 kB 00:19
--------------------------------------------------------------------------------
总计 4.8 kB/s | 95 kB 00:19
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中 : 1/1
安装 : mysql-community-common-5.7.39-1.el7.x86_64 1/12
安装 : mysql-community-libs-5.7.39-1.el7.x86_64 2/12
运行脚本: mysql-community-libs-5.7.39-1.el7.x86_64 2/12
安装 : mysql-community-client-5.7.39-1.el7.x86_64 3/12
运行脚本: mysql-community-server-5.7.39-1.el7.x86_64 4/12
安装 : mysql-community-server-5.7.39-1.el7.x86_64 4/12
运行脚本: mysql-community-server-5.7.39-1.el7.x86_64 4/12
安装 : mysql-community-devel-5.7.39-1.el7.x86_64 5/12
安装 : mysql-community-embedded-5.7.39-1.el7.x86_64 6/12
运行脚本: mysql-community-embedded-5.7.39-1.el7.x86_64 6/12
安装 : perl-JSON-4.03-5.el9.noarch 7/12
安装 : mysql-community-test-5.7.39-1.el7.x86_64 8/12
安装 : mysql-community-embedded-devel-5.7.39-1.el7.x86_64 9/12
安装 : mysql-community-libs-compat-5.7.39-1.el7.x86_64 10/12
运行脚本: mysql-community-libs-compat-5.7.39-1.el7.x86_64 10/12
安装 : mysql-community-embedded-compat-5.7.39-1.el7.x86_64 11/12
安装 : mysql-community-release-el7-7.noarch 12/12
运行脚本: mysql-community-release-el7-7.noarch 12/12
/usr/lib/tmpfiles.d/mysql.conf:23: Line references path below legacy directory /var/run/, updating /var/run/mysqld → /run/mysqld; please update the tmpfiles.d/ drop-in file accordingly.
验证 : perl-JSON-4.03-5.el9.noarch 1/12
验证 : mysql-community-client-5.7.39-1.el7.x86_64 2/12
验证 : mysql-community-common-5.7.39-1.el7.x86_64 3/12
验证 : mysql-community-devel-5.7.39-1.el7.x86_64 4/12
验证 : mysql-community-embedded-5.7.39-1.el7.x86_64 5/12
验证 : mysql-community-embedded-compat-5.7.39-1.el7.x86_64 6/12
验证 : mysql-community-embedded-devel-5.7.39-1.el7.x86_64 7/12
验证 : mysql-community-libs-5.7.39-1.el7.x86_64 8/12
验证 : mysql-community-libs-compat-5.7.39-1.el7.x86_64 9/12
验证 : mysql-community-release-el7-7.noarch 10/12
验证 : mysql-community-server-5.7.39-1.el7.x86_64 11/12
验证 : mysql-community-test-5.7.39-1.el7.x86_64 12/12
已安装:
mysql-community-client-5.7.39-1.el7.x86_64
mysql-community-common-5.7.39-1.el7.x86_64
mysql-community-devel-5.7.39-1.el7.x86_64
mysql-community-embedded-5.7.39-1.el7.x86_64
mysql-community-embedded-compat-5.7.39-1.el7.x86_64
mysql-community-embedded-devel-5.7.39-1.el7.x86_64
mysql-community-libs-5.7.39-1.el7.x86_64
mysql-community-libs-compat-5.7.39-1.el7.x86_64
mysql-community-release-el7-7.noarch
mysql-community-server-5.7.39-1.el7.x86_64
mysql-community-test-5.7.39-1.el7.x86_64
perl-JSON-4.03-5.el9.noarch
完毕!
[root@localhost tempfile]# systemctl start mysqld
[root@localhost etc]# vim my.cnf
[root@localhost etc]# systemctl stop mysqld
[root@localhost etc]# systemctl start mysqld
[root@localhost etc]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.39 MySQL Community Server (GPL)
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases
-> ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.00 sec)
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> update user set authentication_string=password('123456') where user='root';
Query OK, 1 row affected, 1 warning (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 1
mysql> update user set authentication_string=password('123456789a') where user='root';
Query OK, 1 row affected, 1 warning (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 1
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
[root@localhost etc]# vim my.cnf
[root@localhost etc]# systemctl stop mysqld
[root@localhost etc]# systemctl start mysqld