Home > Database > Mysql Tutorial > MYSQL安装时解决要输入current root password的解决方法_MySQL

MYSQL安装时解决要输入current root password的解决方法_MySQL

WBOY
Release: 2016-06-01 13:21:10
Original
1311 people have browsed it

bitsCN.com 终归结出以下解决方法:

1.清除MYSQL的安装目录,默认是C:/Program Files

2.清除MYSQL数据存放目录,一般在C:/Documents and Settings/All Users.windows/Application Data目录下

(需要注意的时Application Data这个文件夹默认是隐藏的,要通过 工具->文件夹选项->查看->显示所有

文件与文件夹 来设置隐藏文件可见)。

删除MySQL文件夹

3.这步很重要,之前不管我怎么卸载MYSQL清空残余文件都还是要输入原始密码,后来试试找了下注册表,清空后果然有效。

删除注册表数据,通过regedit,删除以下几个文件:

引用

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Applications/MySQL

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Applications/MySQL

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Applications/MySQL

最后 万事OK!!!。。。bitsCN.com

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template