mysql修改root密碼


1、在Navicat界面進入,右鍵點擊 命令列界面

2、依次輸入: use mysql;

3、如果是5.7以下版本用 update user set password=password('xxxxxxxx') where user='root';

如果是5.7以上版本則用 update user set authentication_string=password('xxxxxxx') where user='root';

4、刷新權限: flush privileges;

5、編輯Navicat連接,重新登錄

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM