use mysql;update user set password='123456' where user='root'; //报unknown column password错误update mysql.user set authentication_string=password('123456') where user='root'; //修改root用户密码,密码字段为authentication_stringFLUSH PRIVILEGES; //刷新缓存