mysql破解密码并修改密码

来源:互联网 发布:横县教研室网络硬盘 编辑:程序博客网 时间:2024/06/06 03:23
修改mysql配置文件
在/etc/my.cnf文件中加入一行代码skip-grant-tables

service    mysqld start

mysql输入  flush privileges;

mysql输入   set password for root@localhost=password('123456');

mysql输入  quit

service mysqld stop


在/etc/my.inf文件中删除代码skip-grant-tables

service    mysqld start



原创粉丝点击