码迷,mamicode.com
首页 > 数据库 > 详细

mysql 修改用户密码

时间:2017-09-04 01:03:02      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:pass   col   ica   where   date   column   修改用户密码   ges   错误   

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

mysql 修改用户密码

标签:pass   col   ica   where   date   column   修改用户密码   ges   错误   

原文地址:http://www.cnblogs.com/sunflower627/p/7471850.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!