一、在Navicat界面進入,右鍵點擊 命令列界面mysql
二、依次輸入: use mysql;sql
三、若是是5.7如下版本用 update user set password=password('&MnsMPCh8') where user='root';blog
若是是5.7以上版本則用 update user set authentication_string=password('&MnsMPCh8') where user='root';string
四、刷新權限: flush privileges;io
五、編輯Navicat鏈接,從新登陸登錄