我们在windows下安装mysql最后一步时会出现Access denied for user 'root'@localhost'(using password:No)的问题。这几个问题经常出现在卸载了mysql重新安装后。
解决方法:
1:在控制面板-->管理-->服务和应用程序-->服务 中停止mysql服务
2:卸载mysql(方法有很多种。。)
3:删除 C:Documents and SettingsAll UsersApplication Data里面的MySQL文件夹
4:删除以下注册表mysql目录:
HKEY_LOCAL_MACHINESYSTEMControlSet001ServicesEventlogApplicationMySQL
HKEY_LOCAL_MACHINESYSTEMControlSet002ServicesEventlogApplicationMySQL
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlogApplicationMySQL