Heim  >  Artikel  >  Datenbank  >  MYSQL安装时解决要输入current root password的解决方法

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

WBOY
WBOYOriginal
2016-06-07 18:03:552014Durchsuche

在装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!!!。。。
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn