国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

MAC解決MySQL登錄ERROR 1045 (28000): Access denied for user root@localhost (using passwor)問題

這篇具有很好參考價值的文章主要介紹了MAC解決MySQL登錄ERROR 1045 (28000): Access denied for user root@localhost (using passwor)問題。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

發(fā)現(xiàn)問題

今天在MAC上安裝完MYSQL后,MYSQL默認(rèn)給分配了一個默認(rèn)密碼,但當(dāng)自己在終端上使用默認(rèn)密碼登錄的時候,總會提示一個授權(quán)失敗的錯誤:Access denied for user ‘root’@’localhost’ (using passwor)如圖:
MAC解決MySQL登錄ERROR 1045 (28000): Access denied for user root@localhost (using passwor)問題,Mac/Windows/iPhone常用操作,mysql,macos,數(shù)據(jù)庫

解決問題

首先,進(jìn)入到/usr/local/mysql/support-file,然后按以下步驟操作:文章來源地址http://www.zghlxwxcb.cn/news/detail-669158.html

# cd /usr/local/mysql/support-file  && ./mysql.server stop

# sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables & 

mysql > UPDATE mysql.user SET authentication_string=PASSWORD('root123*') WHERE User='root';
mysql > FLUSH PRIVILEGES;
mysql > \q

# cd /usr/local/mysql/support-file && ./mysql.server start

#  /usr/local/mysql/bin/mysql -u root -p
passwd: 輸入密碼

到了這里,關(guān)于MAC解決MySQL登錄ERROR 1045 (28000): Access denied for user root@localhost (using passwor)問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • 完美解決ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO)

    已解決ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO) 下滑查看解決方法 ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO) 對于出現(xiàn)\\\"ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)\\\"的問題,一般是由于MySQL的訪問權(quán)

    2024年02月05日
    瀏覽(21)
  • mySQL出現(xiàn)密碼正確但沒有權(quán)限進(jìn)入:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password)

    mySQL出現(xiàn)密碼正確但沒有權(quán)限進(jìn)入:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password)

    記得密碼是正確的,但是就是進(jìn)不去,沒有進(jìn)去的權(quán)限; 輕松解決,不用管my.ini的skip-grant-tables的輕松解決辦法?。?! 1.進(jìn)入到? /etc/mysql/debian.cnf文件中,找到debian-sys-maint的密碼 2.輸入命令mysql -u debian-sys-maint -p 密碼就是在文件中看到的密碼,就可以進(jìn)入到mysql 3.查看user表中的

    2024年04月26日
    瀏覽(26)
  • ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)

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

    親愛的小伙伴,是不是你在登錄自己的mysql數(shù)據(jù)庫的時候,出現(xiàn)了標(biāo)題所示的錯誤的提示呢?不要慌張,不要著急,因為作為一個親身經(jīng)歷者,不瞞你們說當(dāng)時我也是慌得一批。不過還好,在查了一堆的資料后,終于將它解決了。接下來我就將我的解決辦法分享給大家,希望

    2024年02月11日
    瀏覽(21)
  • ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘ (using password YES/NO)

    ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘ (using password YES/NO)

    在使用命令行登錄 MySQL 時出現(xiàn)了下述問題: 或:ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO) using password: NO :表示輸入沒有輸入密碼就嘗試登陸了 using password: YES :表示輸入了密碼,但密碼錯誤 所以,很有可能是忘記密碼了,因此需要重設(shè)密碼。

    2024年02月11日
    瀏覽(20)
  • MySQL登錄報錯1045解決辦法-1045-Access denied for user ‘root‘@‘‘(using password:YES)

    MySQL登錄報錯1045解決辦法-1045-Access denied for user ‘root‘@‘‘(using password:YES)

    此報錯的原因則是沒有開通權(quán)限 解決方案: 1、打開cmd命令面板 2、輸入 mysql -u root -p ,之后輸入密碼(數(shù)據(jù)庫root賬戶的密碼) 3、開通權(quán)限 全部開放 GRANT ALL PRIVILEGES ON . TO ‘root’@‘%’ IDENTIFIED BY ‘password’ WITH GRANT OPTION; 指定ip開放 GRANT ALL PRIVILEGES ON . TO ‘root’@‘192.168.1

    2024年02月15日
    瀏覽(19)
  • Mysql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES/NO)個人解決方法 分享一下

    Mysql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES/NO)個人解決方法 分享一下

    Mysql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES/NO) 看了很多篇文章都沒解決, 下面是我個人解決方法 分享一下 Access denied(拒絕訪問) using password:NO (沒有就輸出NO) Access denied(拒絕訪問) using password:YES (輸入了就表示YES) CTRL+ALT+DELETE 打開任務(wù)管理器,切換到“

    2023年04月19日
    瀏覽(25)
  • Mac MySQL初始登錄root報錯access denied解決方法

    Mac MySQL初始登錄root報錯access denied解決方法

    如圖,當(dāng)在mac m2上首次安裝mysql后嘗試登錄root用戶時,無論輸入什么樣的密碼,或者直接回車鍵,都會顯示access denied for user \\\'root\\\'@\\\'localhost\\\'。同時win和ubuntu也出現(xiàn)了一模一樣的問題,先記錄一下mac的解決方法。 https://www.cnblogs.com/goodgoodstudyforlong/p/11051485.html#:~:text=mac下安裝mys

    2024年02月09日
    瀏覽(16)
  • mysql連接數(shù)據(jù)庫報錯:1045 - Access denied for user ‘root‘@‘localhost‘ (using password:YES)

    mysql連接數(shù)據(jù)庫報錯:1045 - Access denied for user ‘root‘@‘localhost‘ (using password:YES)

    連接數(shù)據(jù)庫或者在Navicat連接數(shù)據(jù)庫,報錯信息為:1045 - Access denied for user \\\'root\\\'@\\\'localhost\\\' (using password:YES) 連接數(shù)據(jù)庫報錯問題 一、報錯問題提示信息 1.終端連接報錯 Navicat連接報錯 二、解決方法: 以管理員身份運行cmd; 2.cd到mysql下的bin目錄; 3.停止mysql服務(wù) 4.mysql權(quán)限屏蔽

    2024年02月12日
    瀏覽(33)
  • phpstudy配置本地網(wǎng)站出現(xiàn)MYSQL 報錯:SQLSTATE [HY000] [1045] Access denied for user ‘root‘@‘localhost‘ (using pa

    phpstudy配置本地網(wǎng)站出現(xiàn)MYSQL 報錯:SQLSTATE [HY000] [1045] Access denied for user ‘root‘@‘localhost‘ (using pa

    ? ? ? ? 今天配置一個本地網(wǎng)站,用于測試,用的phpstudy,數(shù)據(jù)庫密碼等都配置好了,但是出現(xiàn) MYSQL 報錯:SQLSTATE [HY000] [1045] Access denied for user \\\'root\\\'@\\\'localhost\\\' (using password:yes) 其實這種錯誤只要打開馬蹄,進(jìn)入命令行界面,輸入三行代碼即可 ?進(jìn)入 MYSQL,按照以下三步依次執(zhí)行

    2024年02月09日
    瀏覽(26)
  • MySql5.7之ERROR 1045 (28000)問題處理

    時隔多日連接MySQL時出現(xiàn)了\\\"ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)\\\"的錯誤 輸入的正確密碼也無法連接 引發(fā)問題的原因可能如下: 用戶名或密碼不正確:請確保輸入的用戶名和密碼是正確的,注意區(qū)分大小寫。 沒有為用戶授予足夠的權(quán)限:用戶

    2024年02月19日
    瀏覽(17)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包