進入mysql命令行
update mysql.user set authentication_string=PASSWORD('newPwd'), plugin='mysql_native_password' where user='root'; //1698登錄錯誤,遠程無法登錄
flush privileges
附注:修改mysql root用戶密碼方法
mysqladmin -u root -p password 123456 //設置root密碼位123456
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; //設置root密碼位123456
flush privileges