美文网首页
2018-11-29

2018-11-29

作者: 4e0b3c520bb8 | 来源:发表于2018-11-29 20:12 被阅读0次

    mysql 的密码如何更改

    1、停掉服务

    2、mysqld_safe --skip-grant-tables  --skip-networking  &  打入   ,出于安全考虑一般打上 --skip-networking ,是为了并开启网络的连接,也就是3306的端口,此网路是实现在本地之上

    3、另开终端,mysql -uroot  ,  可以进入数据库

    4、update mysql.user set authentication_string=password('你想修改的密码')  where user='root';

    5、成功更改密码

    相关文章

      网友评论

          本文标题:2018-11-29

          本文链接:https://www.haomeiwen.com/subject/mthqcqtx.html