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

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

WBOY
Release: 2016-06-07 18:03:55
Original
2076 people have browsed it

在装MYSQL的时候发现要输入current root password不记得以前在电脑里装过(你的系统曾经装过MYSQL在重装就会要求输入原来设定的密码,如果是第一次安装就不会出现),在网上苦苦搜寻解决方法。

终归结出以下解决方法:

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!!!。。。
Related labels:
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