当前位置:Gxlcms > 数据库问题 > mysql 修改用户密码

mysql 修改用户密码

时间:2021-07-01 10:21:17 帮助过:12人阅读

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   错误   

人气教程排行