mysql> update mysql.user set password=PASSWORD('123456') where User='root'; ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. 解决方法: mysql>set password=password('密码');