mysql5.7怎么重置密码
mysql5.7重置密码的方法:首先执行【update user set authentication_string = password(123456) where user = root;】语句;然后重启mysql服务即可。 具体方法: (推荐教程:mysql视频教程) 关闭MySQL5.7的权
<blockquote><p>mysql5.7重置密码的方法:首先执行【update user set authentication_string = password('123456') where user = 'root';】语句;然后重启mysql服务即可。</p></blockquote>
具体方法:
(推荐教程:mysql视频教程)
关闭MySQL5.7的权限系统
找到MySQL5.7的配置文件my.cnf
在文件末尾编辑增加代码skip-grant-tables
重启mysqld服务,登陆MySQL
修改root密码
以上就是mysql5.7怎么重置密码的详细内容,更多请关注每日运维其它相关文章!