`
talentluke
  • 浏览: 593443 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

修改mysql密码

 
阅读更多

(1)set password for 'root'@'localhost'=PASSWORD('new123');

 

说明:localhost为数据库mysql的user表中指定的Host字段

 

(2)update user set password=PASSWORD('123456') where user='root';

说明:数据库mysql的user表中所有密码都为123456

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics