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

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

    <legend id='ElFLP'><style id='ElFLP'><dir id='ElFLP'><q id='ElFLP'></q></dir></style></legend>

    <tfoot id='ElFLP'></tfoot>

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

    2. MySQL ERROR 1045 (28000):用戶“bill"@“localhost&quo

      MySQL ERROR 1045 (28000): Access denied for user #39;bill#39;@#39;localhost#39; (using password: YES)(MySQL ERROR 1045 (28000):用戶“bill@“localhost的訪問被拒絕(使用密碼:是))

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

              <bdo id='dPrrf'></bdo><ul id='dPrrf'></ul>

            • <tfoot id='dPrrf'></tfoot>
              <legend id='dPrrf'><style id='dPrrf'><dir id='dPrrf'><q id='dPrrf'></q></dir></style></legend>
              <i id='dPrrf'><tr id='dPrrf'><dt id='dPrrf'><q id='dPrrf'><span id='dPrrf'><b id='dPrrf'><form id='dPrrf'><ins id='dPrrf'></ins><ul id='dPrrf'></ul><sub id='dPrrf'></sub></form><legend id='dPrrf'></legend><bdo id='dPrrf'><pre id='dPrrf'><center id='dPrrf'></center></pre></bdo></b><th id='dPrrf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='dPrrf'><tfoot id='dPrrf'></tfoot><dl id='dPrrf'><fieldset id='dPrrf'></fieldset></dl></div>
                <tbody id='dPrrf'></tbody>
              1. 本文介紹了MySQL ERROR 1045 (28000):用戶“bill"@“localhost"的訪問被拒絕(使用密碼:是)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                首先讓我提一下,我已經瀏覽了許多建議的問題,但沒有找到相關的答案.這就是我正在做的事情.

                我已連接到我的 Amazon EC2 實例.我可以使用以下命令使用 MySQL root 登錄:

                mysql -u root -p

                然后我用主機 % 創建了一個新的用戶賬單

                CREATE USER 'bill'@'%' IDENTIFIED BY 'passpass';

                授予用戶 bill 的所有權限:

                使用授權選項將*.*的所有權限授予'bill'@'%';

                然后我從 root 用戶退出并嘗試使用 bill 登錄:

                mysql -u bill -p

                輸入正確的密碼,但出現此錯誤:

                <塊引用>

                ERROR 1045 (28000): 用戶 'bill'@'localhost' 訪問被拒絕(使用密碼:YES)

                解決方案

                您可能有一個匿名用戶 ''@'localhost'''@'127.0.0.1'.

                根據手冊:

                <塊引用>

                當可能有多個匹配項時,服務器必須確定哪個匹配項他們使用.它解決了這個問題如下:(...)

                • 當客戶端嘗試連接時,服務器按排序順序查看[表 mysql.user] 的行.
                • 服務器使用與客戶端主機名和用戶名匹配的第一行.

                (...)服務器使用排序規則,將具有最具體的 Host 值的行排在第一位.文字主機名[例如'localhost']和IP地址是最具體的.

                因此,當從 localhost 連接時,這樣的匿名用戶會屏蔽"任何其他用戶,例如 '[any_username]'@'%'.

                'bill'@'localhost' 確實匹配 'bill'@'%',但會匹配(例如)''@'localhost' 事先.

                推薦的解決方案是刪除此匿名用戶(無論如何,這通常是一件好事).

                <小時>

                下面的編輯大多與主要問題無關.這些只是為了回答在此線程中的其他評論中提出的一些問題.

                編輯 1

                通過套接字驗證為 'bill'@'%'.

                <前>root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql -ubill -ppass --socket=/tmp/mysql-5.5.sock歡迎使用 MySQL 監視器 (...)mysql> SELECT 用戶,主機 FROM mysql.user;+------+------------+|用戶 |主機|+------+------------+|賬單|% ||根|127.0.0.1 ||根|::1 ||根|本地主機 |+------+------------+4 行(0.00 秒)mysql> SELECT USER(), CURRENT_USER();+----------------+----------------+|用戶() |CURRENT_USER() |+----------------+----------------+|bill@localhost |賬單@% |+----------------+----------------+1 排(0.02 秒)mysql> SHOW VARIABLES LIKE 'skip_networking';+-----------------+-------+|變量名 |價值 |+-----------------+-------+|跳過網絡|開 |+-----------------+-------+1 行(0.00 秒)

                編輯 2

                完全相同的設置,除了我重新激活網絡,我現在創建一個匿名用戶 ''@'localhost'.

                <前>root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql歡迎使用 MySQL 監視器 (...)mysql> CREATE USER ''@'localhost' IDENTIFIED BY 'anotherpass';查詢正常,0 行受影響(0.00 秒)mysql> 再見root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql -ubill -ppass \--socket=/tmp/mysql-5.5.sock錯誤 1045 (28000): 用戶 'bill'@'localhost' 訪問被拒絕(使用密碼:是)root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql -ubill -ppass \-h127.0.0.1 --protocol=TCP錯誤 1045 (28000): 用戶 'bill'@'localhost' 訪問被拒絕(使用密碼:是)root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql -ubill -ppass \-hlocalhost --protocol=TCP錯誤 1045 (28000): 用戶 'bill'@'localhost' 訪問被拒絕(使用密碼:是)

                編輯 3

                與編輯 2 中的情況相同,現在提供匿名用戶的密碼.

                <前>root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql -ubill -panotherpass -hlocalhost歡迎使用 MySQL 監視器 (...)mysql> SELECT USER(), CURRENT_USER();+----------------+----------------+|用戶() |CURRENT_USER() |+----------------+----------------+|bill@localhost |@本地主機 |+----------------+----------------+1 行(0.01 秒)

                結論 1,來自編輯 1:可以通過套接字驗證為 'bill'@'%'.

                結論 2,來自編輯 2:無論是通過 TCP 連接還是通過套接字連接對身份驗證過程沒有影響(除了不能作為其他任何人連接,但 'something'@'localhost' 通過顯然是一個套接字).

                結論 3,來自編輯 3:雖然我指定了 -ubill,但我已被授予匿名用戶訪問權限.這是因為上面建議的排序規則".請注意,在大多數默認安裝中,存在無密碼的匿名用戶(并且應該被固定/移除).

                First let me mention that I've gone through many suggested questions and found no relevent answer. Here is what I'm doing.

                I'm connected to my Amazon EC2 instance. I can login with MySQL root with this command:

                mysql -u root -p
                

                Then I created a new user bill with host %

                CREATE USER 'bill'@'%' IDENTIFIED BY 'passpass';
                

                Granted all the privileges to user bill:

                grant all privileges on *.* to 'bill'@'%' with grant option;
                

                Then I exit from root user and try to login with bill:

                mysql -u bill -p
                

                entered the correct password and got this error:

                ERROR 1045 (28000): Access denied for user 'bill'@'localhost' (using password: YES)

                解決方案

                You probably have an anonymous user ''@'localhost' or ''@'127.0.0.1'.

                As per the manual:

                When multiple matches are possible, the server must determine which of them to use. It resolves this issue as follows: (...)

                • When a client attempts to connect, the server looks through the rows [of table mysql.user] in sorted order.
                • The server uses the first row that matches the client host name and user name.

                (...) The server uses sorting rules that order rows with the most-specific Host values first. Literal host names [such as 'localhost'] and IP addresses are the most specific.

                Hence, such an anonymous user would "mask" any other user like '[any_username]'@'%' when connecting from localhost.

                'bill'@'localhost' does match 'bill'@'%', but would match (e.g.) ''@'localhost' beforehands.

                The recommended solution is to drop this anonymous user (this is usually a good thing to do anyways).


                Below edits are mostly irrelevant to the main question. These are only meant to answer some questions raised in other comments within this thread.

                Edit 1

                Authenticating as 'bill'@'%' through a socket.

                
                    root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql -ubill -ppass --socket=/tmp/mysql-5.5.sock
                    Welcome to the MySQL monitor (...)
                
                    mysql> SELECT user, host FROM mysql.user;
                    +------+-----------+
                    | user | host      |
                    +------+-----------+
                    | bill | %         |
                    | root | 127.0.0.1 |
                    | root | ::1       |
                    | root | localhost |
                    +------+-----------+
                    4 rows in set (0.00 sec)
                
                    mysql> SELECT USER(), CURRENT_USER();
                    +----------------+----------------+
                    | USER()         | CURRENT_USER() |
                    +----------------+----------------+
                    | bill@localhost | bill@%         |
                    +----------------+----------------+
                    1 row in set (0.02 sec)
                
                    mysql> SHOW VARIABLES LIKE 'skip_networking';
                    +-----------------+-------+
                    | Variable_name   | Value |
                    +-----------------+-------+
                    | skip_networking | ON    |
                    +-----------------+-------+
                    1 row in set (0.00 sec)
                
                

                Edit 2

                Exact same setup, except I re-activated networking, and I now create an anonymous user ''@'localhost'.

                
                    root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql
                    Welcome to the MySQL monitor (...)
                
                    mysql> CREATE USER ''@'localhost' IDENTIFIED BY 'anotherpass';
                    Query OK, 0 rows affected (0.00 sec)
                
                    mysql> Bye
                
                    root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql -ubill -ppass \
                        --socket=/tmp/mysql-5.5.sock
                    ERROR 1045 (28000): Access denied for user 'bill'@'localhost' (using password: YES)
                    root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql -ubill -ppass \
                        -h127.0.0.1 --protocol=TCP
                    ERROR 1045 (28000): Access denied for user 'bill'@'localhost' (using password: YES)
                    root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql -ubill -ppass \
                        -hlocalhost --protocol=TCP
                    ERROR 1045 (28000): Access denied for user 'bill'@'localhost' (using password: YES)
                
                

                Edit 3

                Same situation as in edit 2, now providing the anonymous user's password.

                
                    root@myhost:/home/mysql-5.5.16-linux2.6-x86_64# ./mysql -ubill -panotherpass -hlocalhost
                    Welcome to the MySQL monitor (...)
                
                    mysql> SELECT USER(), CURRENT_USER();
                    +----------------+----------------+
                    | USER()         | CURRENT_USER() |
                    +----------------+----------------+
                    | bill@localhost | @localhost     |
                    +----------------+----------------+
                    1 row in set (0.01 sec)
                
                

                Conclusion 1, from edit 1: One can authenticate as 'bill'@'%'through a socket.

                Conclusion 2, from edit 2: Whether one connects through TCP or through a socket has no impact on the authentication process (except one cannot connect as anyone else but 'something'@'localhost' through a socket, obviously).

                Conclusion 3, from edit 3: Although I specified -ubill, I have been granted access as an anonymous user. This is because of the "sorting rules" advised above. Notice that in most default installations, a no-password, anonymous user exists (and should be secured/removed).

                這篇關于MySQL ERROR 1045 (28000):用戶“bill"@“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 數據幀讀取?)

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

                  • <small id='AChRU'></small><noframes id='AChRU'>

                          <tbody id='AChRU'></tbody>

                        1. 主站蜘蛛池模板: 成人免费视频 | 国产精品久久久久久久久久99 | 久久一热 | 欧美性生活视频 | www.色.com | 在线亚洲精品 | 精品久久av | www.夜夜骑 | 国产一区二区三区久久久久久久久 | 国产黄色一级电影 | 亚洲精品视频在线观看视频 | 欧美三级视频在线观看 | 欧美日韩一区二区在线 | 精品国产乱码久久久久久丨区2区 | 免费污视频 | 国产精品区一区二 | 成人精品一区二区户外勾搭野战 | 亚洲欧美日韩成人在线 | 精品国产一区一区二区三亚瑟 | 久久久综合精品 | 亚洲国产专区 | 午夜精品视频在线观看 | 国产欧美一区二区三区另类精品 | 亚洲精品电影在线观看 | 最新免费av网站 | 久久不卡| 国产一区二区精品在线观看 | 国产高清一区 | 蜜桃视频在线观看免费视频网站www | 亚洲精品在线观看视频 | 久久精品国产一区二区三区不卡 | 中文日韩在线 | 国产日产久久高清欧美一区 | 日韩视频一区 | 国外激情av| 久久亚洲视频网 | 国产精品视频一区二区三区 | 国产精品入口久久 | 日韩av一区二区在线观看 | 国产成人精品久久二区二区 | av激情影院 |