mysql 5.6
mysql> update user set password=password("*******") where user="*******"; #修改密码报错
mysql 5.7
mysql> update mysql.user set authentication_string=password('*******') where user='*******'; #修改密码成功
mysql> flush privileges; #立即生效
mysql 5.6
mysql> update user set password=password("*******") where user="*******"; #修改密码报错
mysql 5.7
mysql> update mysql.user set authentication_string=password('*******') where user='*******'; #修改密码成功
mysql> flush privileges; #立即生效