国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

已解決:源 “MySQL 5.7 Community Server“ 的 GPG 密鑰已安裝,但是不適用于此軟件包。請(qǐng)檢查源的公鑰 URL 是否配置正確 和 報(bào)錯(cuò):`ERROR 1045 (28000

這篇具有很好參考價(jià)值的文章主要介紹了已解決:源 “MySQL 5.7 Community Server“ 的 GPG 密鑰已安裝,但是不適用于此軟件包。請(qǐng)檢查源的公鑰 URL 是否配置正確 和 報(bào)錯(cuò):`ERROR 1045 (28000。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

問(wèn)題描述

  1. 服務(wù)器上安裝mysql時(shí)出現(xiàn)了報(bào)錯(cuò),簡(jiǎn)單記錄下解決方案

    "MySQL 5.7 Community Server" 的 GPG 密鑰已安裝,但是不適用于此軟件包。請(qǐng)檢查源的公鑰 URL 是否配置正確。
    
    
     失敗的軟件包是:mysql-community-client-5.7.40-1.el7.x86_64
     GPG  密鑰配置為:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
    
  2. 執(zhí)行:rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

    [root@localhost mysql]# rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
    [root@localhost mysql]# yum install mysql-server
    已加載插件:fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
    正在解決依賴關(guān)系
    --> 正在檢查事務(wù)
    ---> 軟件包 mysql-community-server.x86_64.0.5.7.40-1.el7 將被 安裝
    --> 正在處理依賴關(guān)系 mysql-community-common(x86-64) = 5.7.40-1.el7,它被軟件包 mysql-community-server-5.7.40-1.el7.x86_64 需要
    --> 正在處理依賴關(guān)系 mysql-community-client(x86-64) >= 5.7.9,它被軟件包 mysql-community-server-5.7.40-1.el7.x86_64 需要
    --> 正在檢查事務(wù)
    ---> 軟件包 mysql-community-client.x86_64.0.5.7.40-1.el7 將被 安裝
    --> 正在處理依賴關(guān)系 mysql-community-libs(x86-64) >= 5.7.9,它被軟件包 mysql-community-client-5.7.40-1.el7.x86_64 需要
    ---> 軟件包 mysql-community-common.x86_64.0.5.7.40-1.el7 將被 安裝
    --> 正在檢查事務(wù)
    ---> 軟件包 mariadb-libs.x86_64.1.5.5.60-1.el7_5 將被 取代
    --> 正在處理依賴關(guān)系 libmysqlclient.so.18()(64bit),它被軟件包 2:postfix-2.10.1-7.el7.x86_64 需要
    --> 正在處理依賴關(guān)系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被軟件包 2:postfix-2.10.1-7.el7.x86_64 需要
    ---> 軟件包 mysql-community-libs.x86_64.0.5.7.40-1.el7 將被 舍棄
    --> 正在檢查事務(wù)
    ---> 軟件包 mysql-community-libs-compat.x86_64.0.5.7.40-1.el7 將被 舍棄
    --> 解決依賴關(guān)系完成
    
    依賴關(guān)系解決
    
  3. 啟動(dòng)mysql服務(wù)并查看運(yùn)行狀態(tài)

    [root@localhost mysql]# service mysqld start
    Redirecting to /bin/systemctl start mysqld.service
    [root@localhost mysql]# systemctl status mysqld
    ● mysqld.service - MySQL Server
       Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
       Active: active (running) since 四 2022-10-13 05:42:37 UTC; 7s ago
         Docs: man:mysqld(8)
               http://dev.mysql.com/doc/refman/en/using-systemd.html
      Process: 10239 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
      Process: 10181 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
     Main PID: 10242 (mysqld)
        Tasks: 27
       CGroup: /system.slice/mysqld.service
               └─10242 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
    
    1013 05:42:26 localhost.localdomain systemd[1]: Starting MySQL Server...
    1013 05:42:37 localhost.localdomain systemd[1]: Started MySQL Server.
    
  4. 查看mysql初始密碼:grep 'A temporary password' /var/log/mysqld.log

    [root@localhost mysql]# grep 'A temporary password' /var/log/mysqld.log
    2022-10-13T05:42:35.302480Z 1 [Note] A temporary password is generated for root@localhost: !oCdG%3prdP1
    
    1. 使用初始密碼進(jìn)行登錄,報(bào)錯(cuò):ERROR 1045 (28000): Access denied for user 'root'@'localhost'
    2. 修改 /etc/my.cnf文件,在最后加入skip-grant-tables
    # For advice on how to change settings please see
    # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
    
    [mysqld]
    #
    # Remove leading # and set to the amount of RAM for the most important data
    # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
    # innodb_buffer_pool_size = 128M
    #
    # Remove leading # to turn on a very important data integrity option: logging
    # changes to the binary log between backups.
    # log_bin
    #
    # Remove leading # to set options mainly useful for reporting servers.
    # The server defaults are faster for transactions and fast SELECTs.
    # Adjust sizes as needed, experiment to find the optimal values.
    # join_buffer_size = 128M
    # sort_buffer_size = 2M
    # read_rnd_buffer_size = 2M
    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    
    # Disabling symbolic-links is recommended to prevent assorted security risks
    symbolic-links=0
    
    log-error=/var/log/mysqld.log
    pid-file=/var/run/mysqld/mysqld.pid
    skip-grant-tables
    
  5. 然后重啟數(shù)據(jù)庫(kù):systemctl restart mysqld

    [root@localhost mysql]# systemctl restart mysqld
    
  6. 可以使用無(wú)密碼直接登錄:

    [root@localhost mysql]# mysql -uroot -p 
    Enter password: 
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 2
    Server version: 5.7.40 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> 
    
  7. 修改root 密碼前,先刷新一下權(quán)限,然后再修改root密碼文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-535571.html

    mysql> flush privileges;
    Query OK, 0 rows affected (0.01 sec)
    mysql> alter user 'root'@'localhost' identified by '123456';
    Query OK, 0 rows affected (0.00 sec)
    

到了這里,關(guān)于已解決:源 “MySQL 5.7 Community Server“ 的 GPG 密鑰已安裝,但是不適用于此軟件包。請(qǐng)檢查源的公鑰 URL 是否配置正確 和 報(bào)錯(cuò):`ERROR 1045 (28000的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already installed but they a

    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.36-1.el7.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mys 照著https://cloud.tenc

    2024年04月25日
    瀏覽(14)
  • 安裝MySQL報(bào)錯(cuò):Failing package is: mysql-community-client-5.7.40-1.el7.x86_64 GPG Keys are configured as

    安裝MySQL報(bào)錯(cuò):Failing package is: mysql-community-client-5.7.40-1.el7.x86_64 GPG Keys are configured as

    Failing package is: mysql-community-client-5.7.40-1.el7.x86_64 ?GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql 安裝MySQL執(zhí)行 ?yum -y install mysql-community-server? 時(shí),未安裝成功 MySQL GPG 密鑰已過(guò)期 執(zhí)行 rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022 執(zhí)行后再執(zhí)行 ?yum -y install mysql-community

    2024年02月11日
    瀏覽(27)
  • MySQL Community Server 8.0.33安裝教程【筆記】

    MySQL Community Server 8.0.33安裝教程【筆記】

    僅安裝MySQL Community Server 下載網(wǎng)址:https://dev.mysql.com/downloads/installer/ 1、下載對(duì)應(yīng)版本; 2、下載后,雙擊安裝,彈出界面選擇【 Custom 】; 3、彈出界面選擇【MySQL Server 8.0.33 - X64】; 3、彈出界面選擇**【Execute】→【Next】**; 4、選擇【Development Computer】→【Next】; 5、彈出界面默

    2024年02月05日
    瀏覽(21)
  • CentOS7 安裝MySQL 5.7時(shí),報(bào)錯(cuò)信息:Failing package is: mysql-community-libs-5.7.44-1.el7.x86_64

    執(zhí)行命令后,可能會(huì)出現(xiàn)下面的錯(cuò)誤信息 Public key for mysql-community-libs-5.7.44-1.el7.x86_64.rpm is not installed Failing package is: mysql-community-libs-5.7.44-1.el7.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql 原因是MySQL的GPG升級(jí)了,需要重新導(dǎo)入,執(zhí)行下面的命令即可:

    2024年03月11日
    瀏覽(27)
  • MySQL Community Server的安裝配置教程(Windows版本)

    MySQL Community Server的安裝配置教程(Windows版本)

    MySQL Community Server是開(kāi)源的MySQL數(shù)據(jù)庫(kù)服務(wù)的名稱。它是MySQL AB在2000年推出的一個(gè)開(kāi)源數(shù)據(jù)庫(kù)服務(wù)器,現(xiàn)在由Oracle公司維護(hù)和管理。 MySQL Community Server是一個(gè)關(guān)系型數(shù)據(jù)庫(kù)系統(tǒng),支持多種類型的數(shù)據(jù)和多個(gè)并發(fā)用戶。它提供了強(qiáng)大的SQL查詢語(yǔ)言,以及用于數(shù)據(jù)管理和擴(kuò)展的擴(kuò)展

    2024年02月10日
    瀏覽(21)
  • Failed to start MySQL Community Server in Ubuntu

    一、安裝MySQL 本文是通過(guò)APT方式安裝,安裝的最新版本是5.7.21 (注意:通過(guò)APT方式安裝的版本都是現(xiàn)在最新的版本,通過(guò)這種方式安裝好之后開(kāi)機(jī)自啟動(dòng)都已經(jīng)配置好,和命令行上的環(huán)境變量,無(wú)需手動(dòng)配置。) 如果提示依賴不足,運(yùn)行下面命令解決依賴問(wèn)題,如果沒(méi)出現(xiàn)依

    2024年02月09日
    瀏覽(28)
  • ubuntu22.04 密鑰存儲(chǔ)在過(guò)時(shí)的 trusted.gpg 密鑰環(huán)中

    ubuntu22.04 密鑰存儲(chǔ)在過(guò)時(shí)的 trusted.gpg 密鑰環(huán)中

    電腦環(huán)境:ubuntu22.04 問(wèn)題: 使用 sudo apt update 命令時(shí),會(huì)提示密鑰存儲(chǔ)在過(guò)時(shí)的 trusted.gpg 密鑰環(huán)中,具體提示內(nèi)容如下: W: https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/dists/jammy/InRelease: 密鑰存儲(chǔ)在過(guò)時(shí)的 trusted.gpg 密鑰環(huán)中(/etc/apt/trusted.gpg),請(qǐng)參見(jiàn) apt-key(8) 的 DEPRECATION 一節(jié)以

    2024年02月08日
    瀏覽(33)
  • Error: Unable to find a match: mysql-community-server

    Error: Unable to find a match: mysql-community-server

    問(wèn)題一[root@lsN4FrHvLd mysql]# yum install mysql-community-server Repository extras is listed more than once in the configuration Last metadata expiration check: 0:15:07 ago on Mon 18 Jul 2022 08:32:24 AM CST. No match for argument: mysql-community-server Error: Unable to find a match: mysql-community-server ? 今天使用centos8.5安裝MySQL出現(xiàn)如上錯(cuò)

    2023年04月09日
    瀏覽(20)
  • centos安裝redis,但是啟動(dòng)redis-server /home/redis/conf/redis7000.conf卡住,怎么解決

    如果你在啟動(dòng) Redis 服務(wù)器時(shí)發(fā)現(xiàn)過(guò)程卡住,這可能是由于幾種不同的原因。下面是一些可能導(dǎo)致這種情況的原因以及相應(yīng)的解決方法: 1. 后臺(tái)啟動(dòng) Redis 默認(rèn)在前臺(tái)運(yùn)行。如果你在命令行啟動(dòng) Redis 并且沒(méi)有指定它在后臺(tái)運(yùn)行,它將在前臺(tái)運(yùn)行,看起來(lái)好像是“卡住”了。你可

    2024年01月21日
    瀏覽(29)
  • Linux gpg命令(gpg指令、gpg加密工具)(GNU Privacy Guard、GnuPG)文件壓縮加密、文件加密、文件解密、文件壓縮密碼、解壓密碼、GPG密鑰、數(shù)字簽名、非對(duì)稱加密

    Linux gpg命令(gpg指令、gpg加密工具)(GNU Privacy Guard、GnuPG)文件壓縮加密、文件加密、文件解密、文件壓縮密碼、解壓密碼、GPG密鑰、數(shù)字簽名、非對(duì)稱加密

    GNU Privacy Guard (GnuPG或GPG) 是一個(gè)完全免費(fèi)的開(kāi)源實(shí)現(xiàn),用于OpenPGP標(biāo)準(zhǔn)的數(shù)據(jù)加密和解密。這種加密方式可以用于保護(hù)敏感數(shù)據(jù),確保其在傳輸過(guò)程中不被截獲或篡改。本文將介紹在Linux環(huán)境中如何使用GPG加密工具。 安裝gpg 在大多數(shù)Linux發(fā)行版中,GPG已經(jīng)預(yù)先安裝了。 如果未安

    2024年02月03日
    瀏覽(102)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包