例如要将密码改为:nihao update mysql.user set password=password('nihao') where user='root'; 然后 flush privileges;