mysql 修改用户密码

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_string
FLUSH PRIVILEGES; //刷新缓存

posted @ 2017-09-04 00:13  sunflower627  阅读(191)  评论(0编辑  收藏  举报