亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我收到錯誤 1045 (28000):在 ubuntu 上使用命令 sudo mysql 拒絕用戶

我收到錯誤 1045 (28000):在 ubuntu 上使用命令 sudo mysql 拒絕用戶

PHP
Smart貓小萌 2023-11-03 21:30:26
我有 Linux 和 Apache2,但對于 MySql,我按照教程安裝 LAMP。我跟著它,在我們必須跑的地方之后,我得到了.但根據教程,我應該得到:sudo mysqlERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)Welcome to the MySQL monitor.? Commands end with ; or \g.Your MySQL connection id is 22Server version: 8.0.19-0ubuntu5 (Ubuntu)Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>?請任何人盡快幫助我,因為我正在做的課程有截止日期。此外,如果網絡上有任何文檔,請分享。如果您需要有關錯誤的更多信息,請告訴我以及如何提取它們。謝謝。
查看完整描述

1 回答

?
慕少森

TA貢獻2019條經驗 獲得超9個贊

在mysql控制臺中嘗試以下命令

mysql>  FLUSH PRIVILEGES;
mysql>  ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';


查看完整回答
反對 回復 2023-11-03
  • 1 回答
  • 0 關注
  • 166 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號