进入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