主頁 > 知識庫 > 解決mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)

解決mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)

熱門標簽:拉卡拉外呼系統(tǒng) 話務外呼系統(tǒng)怎么樣 高清地圖標注道路 智能外呼系統(tǒng)復位 外東北地圖標注 400電話可以辦理嗎 臨清電話機器人 大眾點評星級酒店地圖標注 云南電商智能外呼系統(tǒng)價格

一、問題

  有時候我們登錄Mysql輸入密碼的時候,會出現(xiàn)這種情況

  mysql -u root -p

  Enter Password > '密碼'

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

  或者:錯誤:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

二、解決辦法

  修改my.in/my.cnf配置文件

    進入mysql安裝目錄

    編輯my.ini

    在[mysqld]下添加skip-grant-tables,保存即可。

  使用管理員身份打開命令行

 ?、僦貑ysql:

    1、net stop mysql 2、net start mysql

 ?、谶M入mysql,登錄
    mysql -u root -p
    不用輸入密碼,直接回車(出現(xiàn)Enter Password 也一樣直接回車,即可登陸成功)

 ?、圯斎雞se mysql,修改root的密碼:
    update user set authentication_string=password('新密碼') where user='root';
    flush privileges;

 ?、芡顺觯?/p>

    quit;

 ?、菰俅沃貑ysql:

    1、net stop mysql 2、net start mysql

 ?、逌y試是否成功就是是否登陸成功咯。
    mysql -u root -p

    Enter Password>'新密碼'

  就不會出錯,可以登錄啦?。?!

(另外一種情況就是,,你密碼輸入錯誤了,如果是初始化后第一次登錄,出現(xiàn)這種情況的話,很大概率就是密碼錯誤,初始化后的密碼要認真查看,可能會因為空格、小數(shù)點等符號輸錯)

以上就是解決mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)的詳細內(nèi)容,更多關于ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES) 的資料請關注腳本之家其它相關文章!

您可能感興趣的文章:
  • mysql ERROR 1045 (28000)問題的解決方法
  • 解決mysql ERROR 1045 (28000)-- Access denied for user問題
  • ERROR 1045 (28000): Access denied for user ''''root''''@''''localhost'''' (using password: YES)實用解決方案
  • MySQ登錄提示ERROR 1045 (28000)錯誤的解決方法
  • 解決ubuntu 16.04安裝mysql5.7.17后,登錄時出現(xiàn)ERROR 1045 (28000): Access denied for user ''root''@''localhost''問題
  • MySQL ERROR 1045 (28000): Access denied for user ''root''@''localhost'' (using password: NO) 的原因分解決辦法
  • mysql登錄報錯提示:ERROR 1045 (28000)的解決方法
  • MYSQL ERROR 1045 (28000): Access denied for user (using password: YES)問題的解決

標簽:福州 定西 無錫 三明 揚州 山西 阿里 溫州

巨人網(wǎng)絡通訊聲明:本文標題《解決mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)》,本文關鍵詞  解決,mysql,ERROR,1045,28000,;如發(fā)現(xiàn)本文內(nèi)容存在版權問題,煩請?zhí)峁┫嚓P信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《解決mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)》相關的同類信息!
  • 本頁收集關于解決mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)的相關信息資訊供網(wǎng)民參考!
  • 推薦文章