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連接,重新登錄
