window 下mysql :1045 - Access denied for user ‘like’@'localhost'(using password:YES)

來源:互聯網
上載者:User

標籤:os   for   sp   檔案   問題   bs   as   sql   window   

安裝了MySQL Server 6.0,在登陸是總是提示:1045 - Access denied for user ‘like’@‘localhost‘(using password:YES),在網上搜尋半天最終解決,特記錄下解決辦法:

第一步:停止mysql 服務;

第二步:修改my.ini檔案,具體是在檔案中[mysqld]下面添加這句: skip_grant_tables;

第三步:cmd 進入命令視窗,輸入mysql -uroot -p ,輸入密碼;

第四步:成功登陸後,依次執行:UPDATE user SET Password=PASSWORD(‘root‘) where USER=‘root‘;

               FLUSH PRIVILEGES; 

                      exit;

第五步:刪除my.ini中的 skip_grant_tables;

重新啟動mysql服務,問題解決!

 

window 下mysql :1045 - Access denied for user ‘like’@'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.