好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

linux上的mysql忘记密码

set authentication_string=password( ‘ root_password ‘ ) where user= ‘ root ‘ ; root_password替换成你想要的密码,符合密码复杂程度
最后运行语句:flush privileges;

 

7、将刚才添加的语句从/etc/my.cnf删除

重启mysql服务,即可

 

参考:https://HdhCmsTestcnblogs测试数据/black-fact/p/11613361.html

 

linux上的mysql忘记密码

标签:code   png   style   语句   mysql忘记密码   nbsp   img   start   blog   

查看更多关于linux上的mysql忘记密码的详细内容...

  阅读:28次