美文网首页
mysql 重置密码

mysql 重置密码

作者: 末班车2017 | 来源:发表于2017-01-18 21:59 被阅读0次

    丢失root密码:

    mysqld_safe --skip-grant-tables&

    mysql -u root mysql

    更新mysql密码

    update mysql.user set authentication_string=password('yuhang') where user='root' and Host ='localhost';

    使用以下密码进入mysql root帐号

    mysql -u root -p

    Enter Password 输入密码进入

    yuhang

    相关文章

      网友评论

          本文标题:mysql 重置密码

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