連本地電腦裝的mysql報錯Access denied for user 'Root'@'localhost' (using password: YES)

來源:互聯網
上載者:User

標籤:執行   使用者名稱   許可權   授權   for   選項卡   gpo   使用者   ble   

http://blog.csdn.net/iw1210/article/details/54646093

 

http://blog.csdn.net/qq_33251859/article/details/58605659

 

 

找到本地所安裝Mysql的bin目錄:

點開始->運行,輸入   services.msc
在開啟的"服務管理員"中找到mysql並雙擊,會彈出來個屬性框框,"常規"選項卡裡面有個"執行路徑",從這個路徑你就可以看到它的bin目錄在哪.


cmd命令進入Mysql的bin目錄:



MySQL報錯:The MySQL server is running with the --skip-grant-tables option so it cannot execute this 
解決辦法:mysql> flush privilege 下面詳細說說如何給使用者授權。
 
mysql> grant 許可權1,許可權2, ... 許可權n on 資料庫名稱.表名稱 to 使用者名稱@使用者地址 identified by ‘串連口令‘;

許可權1,許可權2,... 許可權n 代表 select、insert、update、delete、create、drop、index、alter、grant、references、reload、shutdown、process、file 等14個許可權。
當許可權1,許可權2,... 許可權n 被 all privileges 或者 all 代替時,表示賦予使用者全部許可權。
當 資料庫名稱.表名稱 被 *.* 代替時,表示賦予使用者動作伺服器上所有資料庫所有表的許可權。
使用者地址可以是localhost,也可以是IP地址、機器名和網域名稱。也可以用 ‘%‘ 表示從任何地址串連。
‘串連口令‘ 不可為空,否則建立失敗。


連本地電腦裝的mysql報錯Access denied for user 'Root'@'localhost' (using password: YES)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.