MYSQL5.7修改密码

参考:https://www.cnblogs.com/activiti/p/7810166.html
# alter user 'root'@'localhost' identified by '123456'
# 或者
update user set authentication_string = password('root'), password_expired = 'N', password_last_changed = now() where user = 'root';
posted @ 2018-07-25 10:45  nanaindi  阅读(91)  评论(0编辑  收藏  举报