婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > 解決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)

熱門標(biāo)簽:拉卡拉外呼系統(tǒng) 話務(wù)外呼系統(tǒng)怎么樣 高清地圖標(biāo)注道路 智能外呼系統(tǒng)復(fù)位 外東北地圖標(biāo)注 400電話可以辦理嗎 臨清電話機(jī)器人 大眾點(diǎn)評星級酒店地圖標(biāo)注 云南電商智能外呼系統(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配置文件

    進(jìn)入mysql安裝目錄

    編輯my.ini

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

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

  ①重啟mysql:

    1、net stop mysql 2、net start mysql

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

  ③輸入use mysql,修改root的密碼:
    update user set authentication_string=password('新密碼') where user='root';
    flush privileges;

  ④退出:

    quit;

  ⑤再次重啟mysql:

    1、net stop mysql 2、net start mysql

  ⑥測試是否成功就是是否登陸成功咯。
    mysql -u root -p

    Enter Password>'新密碼'

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

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

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

您可能感興趣的文章:
  • mysql ERROR 1045 (28000)問題的解決方法
  • 解決mysql ERROR 1045 (28000)-- Access denied for user問題
  • ERROR 1045 (28000): Access denied for user ''''root''''@''''localhost'''' (using password: YES)實(shí)用解決方案
  • 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)問題的解決

標(biāo)簽:福州 定西 無錫 三明 揚(yáng)州 山西 阿里 溫州

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《解決mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)》,本文關(guān)鍵詞  解決,mysql,ERROR,1045,28000,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《解決mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)》相關(guān)的同類信息!
  • 本頁收集關(guān)于解決mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 蕲春县| 桐乡市| 海林市| 马鞍山市| 柳江县| 榆树市| 太和县| 开化县| 谢通门县| 麻江县| 黑水县| 特克斯县| 昆山市| 成武县| 九寨沟县| 普陀区| 铅山县| 法库县| 鲁甸县| 沙田区| 桐城市| 湖州市| 绍兴县| 仙桃市| 磴口县| 台南市| 湛江市| 枞阳县| 晴隆县| 区。| 洞头县| 资阳市| 钦州市| 铁岭县| 钟祥市| 耒阳市| 东城区| 昂仁县| 凤庆县| 桃江县| 湘阴县|