第一种方法:
在MYSQL中MYSQL——》data——》mysq中user.MYD可以直接查看到密码的MD5值

*号代表40位字符

经过拼接得到完整的MD5,解密为root

第二种方法:
自行搭建个环境
下载user.frm user.MYD user.MYI这三个文件到本地替换
3. 输入mysqld --skip-grant-tables 回车。--skip-grant-tables 的意思是启动MySQL服务的时候跳过权限表认证。
连接数据库查询
网友评论