如下更改密码即可
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';mysql> FLUSH PRIVILEGES;mysql> quit
注:一定找执行第二条命令提交修改密码操作,否则修改无效。