mysql修改root密码

一、在Navicat界面进入,右键点击 命令列界面mysql

二、依次输入: use mysql;sql

三、若是是5.7如下版本用 update user set password=password('&MnsMPCh8') where user='root';blog

若是是5.7以上版本则用 update user set authentication_string=password('&MnsMPCh8') where user='root';string

四、刷新权限: flush privileges;io

五、编辑Navicat链接,从新登陆登录

相关文章
相关标签/搜索