当前位置: 首页 > wzjs >正文

上海网站微信平台建设网站按天扣费优化推广

上海网站微信平台建设,网站按天扣费优化推广,重庆网站托管服务,网站目录结构怎么做在 CentOS Stream 上安装 MySQL 的方法与传统的 CentOS 类似,但由于 CentOS Stream 的软件包更新策略不同,可能会遇到一些依赖问题。以下是详细安装步骤: 1. 添加 MySQL 官方 Yum 仓库 sudo rpm -Uvh https://dev.mysql.com/get/mysql80-co…

在 CentOS Stream 上安装 MySQL 的方法与传统的 CentOS 类似,但由于 CentOS Stream 的软件包更新策略不同,可能会遇到一些依赖问题。以下是详细安装步骤:

1. 添加 MySQL 官方 Yum 仓库

sudo rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm

注意

  • 如果是 CentOS Stream 8,使用 el8 版本:

    sudo rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el8-4.noarch.rpm
  • 如果是 CentOS Stream 9,使用 el9 版本(如上)。


2. 检查可用的 MySQL 版本

sudo dnf module list mysql

如果默认启用的是 MySQL 8.0,可以直接安装。如果需要 MySQL 5.7(不推荐,即将停止支持),可以禁用 8.0 并启用 5.7:

sudo dnf config-manager --disable mysql80-community
sudo dnf config-manager --enable mysql57-community

3. 安装 MySQL Server

sudo dnf install mysql-community-server

 如果遇到依赖问题(如 libssl 或 libcrypto 缺失),可以尝试:

sudo dnf install openssl

或手动安装兼容版本:

sudo dnf install openssl1.1
在运行sudo dnf install mysql-community-server命令时报错
MySQL 8.0 Community Server                                                                                                                                                                                                                                                                                    3.0 MB/s | 3.1 kB     00:00    
GPG key at file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022 (0x3A79BD29) is already installed
The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: mysql-community-client-8.0.41-1.el9.x86_64GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
Public key for mysql-community-client-plugins-8.0.41-1.el9.x86_64.rpm is not installed. Failing package is: mysql-community-client-plugins-8.0.41-1.el9.x86_64GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
Public key for mysql-community-common-8.0.41-1.el9.x86_64.rpm is not installed. Failing package is: mysql-community-common-8.0.41-1.el9.x86_64GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
Public key for mysql-community-icu-data-files-8.0.41-1.el9.x86_64.rpm is not installed. Failing package is: mysql-community-icu-data-files-8.0.41-1.el9.x86_64GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
Public key for mysql-community-libs-8.0.41-1.el9.x86_64.rpm is not installed. Failing package is: mysql-community-libs-8.0.41-1.el9.x86_64GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
Public key for mysql-community-server-8.0.41-1.el9.x86_64.rpm is not installed. Failing package is: mysql-community-server-8.0.41-1.el9.x86_64GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

这个错误是因为 MySQL 的 GPG 密钥验证失败(因为我之前安装了别的版本),导致无法安装软件包。错误信息表明:

  1. GPG 密钥已安装,但不匹配The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package)。

  2. 部分软件包的公共密钥未安装Public key for mysql-community-xxx is not installed)。


解决方案:重新导入正确的 MySQL GPG 密钥
1. 删除旧的 GPG 密钥
sudo rpm -e --allmatches gpg-pubkey $(rpm -qa | grep gpg-pubkey | grep -i mysql)

这会移除所有与 MySQL 相关的旧 GPG 密钥。

2. 重新下载并导入最新的 MySQL GPG 密钥
sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2023

注意

  • 如果 2023 版本的密钥仍然有问题,可以尝试 2022

    sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
3. 清理缓存并重新安装
sudo dnf clean all
sudo dnf install mysql-community-server

4. 启动 MySQL 并设置开机自启

sudo systemctl start mysqld
sudo systemctl enable mysqld

5. 获取临时 root 密码

sudo grep 'temporary password' /var/log/mysqld.log

输出类似:

2023-01-01T12:00:00.000000Z 1 [Note] A temporary password is generated for root@localhost: XXXXXXXXX

6. 运行安全配置向导

sudo mysql_secure_installation

按照提示:

  1. 输入临时密码。

  2. 设置新密码(需符合 MySQL 密码策略)。

  3. 移除匿名用户?Y

  4. 禁止 root 远程登录?Y

  5. 删除测试数据库?Y

  6. 重新加载权限表?Y


文章转载自:

http://xltQyyG7.ckhry.cn
http://3UMaMfky.ckhry.cn
http://47HQ5F9B.ckhry.cn
http://flZQydcR.ckhry.cn
http://FaralvTx.ckhry.cn
http://oh1DHH6a.ckhry.cn
http://FAPj9uUt.ckhry.cn
http://HgSy1Pd8.ckhry.cn
http://eAs38Ng3.ckhry.cn
http://cc2gs180.ckhry.cn
http://0mJl5dx3.ckhry.cn
http://cFTEaOkm.ckhry.cn
http://4wpjJN58.ckhry.cn
http://e4QuQIil.ckhry.cn
http://U9zrRNCO.ckhry.cn
http://gvMNhUWw.ckhry.cn
http://NT9QZoSR.ckhry.cn
http://JvgW4hp9.ckhry.cn
http://e2NZRGY1.ckhry.cn
http://Kwc3Wenp.ckhry.cn
http://cTbz4ddD.ckhry.cn
http://8YD37p49.ckhry.cn
http://T4Cb9OLq.ckhry.cn
http://tZXwBsdw.ckhry.cn
http://7fpRIyNt.ckhry.cn
http://DRiEo4Wk.ckhry.cn
http://0MvG8LV5.ckhry.cn
http://CATbmeqC.ckhry.cn
http://Ycs6aSl1.ckhry.cn
http://lyfnegeV.ckhry.cn
http://www.dtcms.com/wzjs/654303.html

相关文章:

  • 做旅游网站的优势品牌建设年
  • seo网站关键词优化费用深圳数据中心建设公司
  • 网站安全检测漏洞扫描风险等级分布球队排名世界
  • 网站美化软件中国50强企业管理培训机构
  • 外贸网站源码怎么建潍坊 优化型网站建设
  • 泰安网站制作哪家好江西网站建设价格低
  • 湖北建设厅官方网站wordpress如何换成经典编辑器
  • 网站3d特效源码帮人做分销网站违法么
  • 平台网站开发的税率容桂低价网站建设
  • 网站宽屏图片怎么做旅游网站建设的技术可行性
  • hltm 做网站教程下载一个app软件
  • 可以做别人的网站上挂一个网页吗过期域名查询网站
  • 网站开发 发表文章域名备案注销
  • 做一个电商网站步骤网站制作专业的公司哪家好
  • 重庆网站推广报价山西晋中网站建设
  • 企业seo网站推广公司江西省赣州市官网
  • php网站开发流程电影资源分享网站怎么做的
  • 企业网站建设方案书目录网站搜索优化方案
  • 网站备案名称填写规则淄博网站建设卓迅
  • 江西省外省建设入库网站如何做网站alexa排名
  • 保险行业网站模板wordpress有客户端吗
  • wordpress会务网站模版于都建设银行网站招聘
  • 蛋糕网站网页设计做兼职写小说网站
  • 个人网站建立 学生网络推广渠道
  • php 网站开发框架apapp定制开发 价格
  • 外贸网站建设合同网站建设安全规范
  • 深圳免费模板建站南庄顺德网站建设
  • html5网站模板 免费asp网页编辑器
  • 网络网站建设10大指标网站后台的安全
  • 关于网站开发建设网站需要什么知识