select user,host,password from mysql.user;
select user,host,authentication_string from mysql.user;
update mysql.user set password=password('新密碼') where user='root' and host='主機名或ip地址';
update mysql.user set authentication_string=password('新密碼') where user='root' and host='主機名或ip地址';
flush privileges;