久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <small id='3KltI'></small><noframes id='3KltI'>

      <tfoot id='3KltI'></tfoot>
      • <bdo id='3KltI'></bdo><ul id='3KltI'></ul>

      <legend id='3KltI'><style id='3KltI'><dir id='3KltI'><q id='3KltI'></q></dir></style></legend>
      <i id='3KltI'><tr id='3KltI'><dt id='3KltI'><q id='3KltI'><span id='3KltI'><b id='3KltI'><form id='3KltI'><ins id='3KltI'></ins><ul id='3KltI'></ul><sub id='3KltI'></sub></form><legend id='3KltI'></legend><bdo id='3KltI'><pre id='3KltI'><center id='3KltI'></center></pre></bdo></b><th id='3KltI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3KltI'><tfoot id='3KltI'></tfoot><dl id='3KltI'><fieldset id='3KltI'></fieldset></dl></div>
    1. 錯誤 1698 (28000):拒絕用戶“root"@“localhost&qu

      ERROR 1698 (28000): Access denied for user #39;root#39;@#39;localhost#39;(錯誤 1698 (28000):拒絕用戶“root@“localhost的訪問)

        <small id='1v9eY'></small><noframes id='1v9eY'>

              <i id='1v9eY'><tr id='1v9eY'><dt id='1v9eY'><q id='1v9eY'><span id='1v9eY'><b id='1v9eY'><form id='1v9eY'><ins id='1v9eY'></ins><ul id='1v9eY'></ul><sub id='1v9eY'></sub></form><legend id='1v9eY'></legend><bdo id='1v9eY'><pre id='1v9eY'><center id='1v9eY'></center></pre></bdo></b><th id='1v9eY'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='1v9eY'><tfoot id='1v9eY'></tfoot><dl id='1v9eY'><fieldset id='1v9eY'></fieldset></dl></div>
              <tfoot id='1v9eY'></tfoot>

                <tbody id='1v9eY'></tbody>
                <bdo id='1v9eY'></bdo><ul id='1v9eY'></ul>

                <legend id='1v9eY'><style id='1v9eY'><dir id='1v9eY'><q id='1v9eY'></q></dir></style></legend>
              • 本文介紹了錯誤 1698 (28000):拒絕用戶“root"@“localhost"的訪問的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在設置一個新服務器,但一直遇到這個問題.

                I'm setting up a new server and keep running into this problem.

                當我嘗試以 root 用戶登錄 MySQL 數據庫時,出現錯誤:

                When I try to log into the MySQL database with the root user, I get the error:

                ERROR 1698 (28000): 用戶 'root'@'localhost' 的訪問被拒絕

                ERROR 1698 (28000): Access denied for user 'root'@'localhost'

                我是否通過終端 (SSH)、phpMyAdmin 或MySQL 客戶端,例如 Navicat.他們都失敗了.

                It doesn't matter if I connect through the terminal (SSH), through phpMyAdmin or a MySQL client, e.g., Navicat. They all fail.

                我查看了 mysql.user 表并得到以下信息:

                I looked in the mysql.user table and get the following:

                +------------------+-------------------+
                | user             | host              |
                +------------------+-------------------+
                | root             | %                 |
                | root             | 127.0.0.1         |
                | amavisd          | localhost         |
                | debian-sys-maint | localhost         |
                | iredadmin        | localhost         |
                | iredapd          | localhost         |
                | mysql.sys        | localhost         |
                | phpmyadmin       | localhost         |
                | root             | localhost         |
                | roundcube        | localhost         |
                | vmail            | localhost         |
                | vmailadmin       | localhost         |
                | amavisd          | test4.folkmann.it |
                | iredadmin        | test4.folkmann.it |
                | iredapd          | test4.folkmann.it |
                | roundcube        | test4.folkmann.it |
                | vmail            | test4.folkmann.it |
                | vmailadmin       | test4.folkmann.it |
                +------------------+-------------------+
                

                如您所見,用戶 root 應該具有訪問權限.

                As you can see, user root should have access.

                服務器非常簡單,因為我已經嘗試解決這個問題有一段時間了.

                The Server is quite simple, as I have tried to troubleshoot this for a while now.

                它正在運行 Ubuntu 16.04.1 LTS (Xenial Xerus) 使用 Apache、MySQL 和 PHP,以便它可以托管網站,以及 iRedMail 0.9.5-1,以便它可以托管郵件.

                It's running Ubuntu?16.04.1 LTS (Xenial Xerus) with Apache, MySQL and PHP, so that it can host websites, and iRedMail 0.9.5-1, so that it can host mail.

                在我安裝 iRedMail 之前登錄 MySQL 數據庫工作正常.我也試過只安裝 iRedMail,但是 root 也不起作用.

                Log into the MySQL database works fine before I installed iRedMail. I also tried just installing iRedMail, but then root also doesn't work.

                如何修復我的 MySQL 登錄問題,或者如何通過現有的 MySQL 安裝安裝 iRedMail?是的,我嘗試了安裝技巧,但我不能在配置文件中找到這些變量.

                How can I fix my MySQL login problem or how can I install iRedMail over an existing MySQL install? And yes, I tried the Installation Tips and I can't find those variables in the configuration files.

                推薦答案

                某些系統如 Ubuntu、MySQL 正在使用 UNIX auth_socket 插件 默認.

                Some systems like Ubuntu, MySQL is using the UNIX auth_socket plugin by default.

                基本上這意味著:db_users 使用它,將被驗證";通過系統用戶憑據.您可以通過執行以下操作來查看您的 root 用戶是否是這樣設置的:

                Basically it means that: db_users using it, will be "authenticated" by the system user credentials. You can see if your root user is set up like this by doing the following:

                sudo mysql -u root # I had to use "sudo" since it was a new installation
                
                mysql> USE mysql;
                mysql> SELECT User, Host, plugin FROM mysql.user;
                
                +------------------+-----------------------+
                | User             | plugin                |
                +------------------+-----------------------+
                | root             | auth_socket           |
                | mysql.sys        | mysql_native_password |
                | debian-sys-maint | mysql_native_password |
                +------------------+-----------------------+
                

                正如您在查詢中看到的,root 用戶正在使用 auth_socket 插件.

                As you can see in the query, the root user is using the auth_socket plugin.

                有兩種方法可以解決這個問題:

                There are two ways to solve this:

                1. 您可以設置root用戶使用mysql_native_password插件
                2. 你可以創建一個新的db_usersystem_user(推薦)
                1. You can set the root user to use the mysql_native_password plugin
                2. You can create a new db_user with you system_user (recommended)

                選項 1:

                sudo mysql -u root # I had to use "sudo" since it was new installation
                
                mysql> USE mysql;
                mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
                mysql> FLUSH PRIVILEGES;
                mysql> exit;
                
                sudo service mysql restart
                

                選項 2:(將 YOUR_SYSTEM_USER 替換為您擁有的用戶名)

                Option 2: (replace YOUR_SYSTEM_USER with the username you have)

                sudo mysql -u root # I had to use "sudo" since is new installation
                
                mysql> USE mysql;
                mysql> CREATE USER 'YOUR_SYSTEM_USER'@'localhost' IDENTIFIED BY 'YOUR_PASSWD';
                mysql> GRANT ALL PRIVILEGES ON *.* TO 'YOUR_SYSTEM_USER'@'localhost';
                mysql> UPDATE user SET plugin='auth_socket' WHERE User='YOUR_SYSTEM_USER';
                mysql> FLUSH PRIVILEGES;
                mysql> exit;
                
                sudo service mysql restart
                

                請記住,如果您使用選項 #2,則必須以系統用戶名 (mysql -u YOUR_SYSTEM_USER) 連接到 MySQL.

                Remember that if you use option #2 you'll have to connect to MySQL as your system username (mysql -u YOUR_SYSTEM_USER).

                注意:在某些系統上(例如,Debian 9 (Stretch)) 'auth_socket' 插件被稱為 'unix_socket',所以對應的SQL命令應該是:UPDATE user SET plugin='unix_socket' WHERE User='YOUR_SYSTEM_USER';

                Note: On some systems (e.g., Debian 9 (Stretch)) the 'auth_socket' plugin is called 'unix_socket', so the corresponding SQL command should be: UPDATE user SET plugin='unix_socket' WHERE User='YOUR_SYSTEM_USER';

                從@andy 的評論看來,MySQL 8.x.x 更新/替換了 caching_sha2_passwordauth_socket.我沒有使用 MySQL 8.x.x 的系統設置來測試這個.但是,上述步驟應該可以幫助您理解問題.回復如下:

                From @andy's comment it seems that MySQL 8.x.x updated/replaced the auth_socket for caching_sha2_password. I don't have a system setup with MySQL 8.x.x to test this. However, the steps above should help you to understand the issue. Here's the reply:

                MySQL 8.0.4 的一個變化是新的默認身份驗證插件是caching_sha2_password".新的YOUR_SYSTEM_USER"將擁有此身份驗證插件,您現在可以使用mysql -u YOUR_SYSTEM_USER -p"從 Bash shell 登錄.并在提示中提供該用戶的密碼.不需要UPDATE user SET plugin";步驟.

                對于 8.0.4 默認身份驗證插件更新,請參閱 https://mysqlserverteam.com/mysql-8-0-4-new-default-authentication-plugin-caching_sha2_password/

                這篇關于錯誤 1698 (28000):拒絕用戶“root"@“localhost"的訪問的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數根據 N 個先前值來決定接下來的 N 個行)
                reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達式的結果;條款?)
                Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數的 ignore 選項是忽略整個事務還是只是有問題的行?) - IT屋-程序員軟件開發技
                Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時出錯,使用 for 循環數組)
                pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調用 o23.load 時發生錯誤 沒有合適的驅動程序)
                How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數據庫表作為 Spark 數據幀讀取?)

                      <tfoot id='tLarw'></tfoot>
                    • <i id='tLarw'><tr id='tLarw'><dt id='tLarw'><q id='tLarw'><span id='tLarw'><b id='tLarw'><form id='tLarw'><ins id='tLarw'></ins><ul id='tLarw'></ul><sub id='tLarw'></sub></form><legend id='tLarw'></legend><bdo id='tLarw'><pre id='tLarw'><center id='tLarw'></center></pre></bdo></b><th id='tLarw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tLarw'><tfoot id='tLarw'></tfoot><dl id='tLarw'><fieldset id='tLarw'></fieldset></dl></div>
                        <bdo id='tLarw'></bdo><ul id='tLarw'></ul>

                        <small id='tLarw'></small><noframes id='tLarw'>

                            <tbody id='tLarw'></tbody>
                          <legend id='tLarw'><style id='tLarw'><dir id='tLarw'><q id='tLarw'></q></dir></style></legend>
                          主站蜘蛛池模板: 国产精品高清一区二区三区 | 久久国内精品 | 亚州精品成人 | 日韩一区二区三区精品 | 久久这里只有精品首页 | 成人网在线观看 | 国产乱精品一区二区三区 | 亚洲导航深夜福利涩涩屋 | 国产成人99久久亚洲综合精品 | 亚洲综合色 | 色播99| 色欧美片视频在线观看 | 欧美精品在线播放 | 97免费视频在线观看 | 国产伦精品一区二区三区照片91 | 黄页网址在线观看 | 伊人春色在线观看 | 午夜精品久久 | 久久久精品 | 免费看片在线播放 | 中文字幕一区二区三区四区 | 欧美日韩亚洲国产 | 中文字幕久久精品 | 国产偷录视频叫床高潮对白 | 色综合久久天天综合网 | 91在线网| 国产一级在线 | 91资源在线观看 | 99国产精品99久久久久久 | 国产精品美女久久久 | 国产成人自拍av | 亚洲喷水 | 国产色| 区一区二区三在线观看 | 91亚洲精品久久久电影 | 午夜精品久久久久久久久久久久 | 九七午夜剧场福利写真 | 国产成人久久精品 | 一区二区三区网站 | 不卡在线一区 | 久久神马 |