今天重装MySQL时配置到最后一步,弹出这个错
Error Nr. 1045
Access denied for user 'root@localhost'(using password:NO)
然后我点skip后取消了配置
打开MySQL Command Line Client提示我输入密码,我直接enter,结果黑框就消失了
求高手解决,谢。。

解决方案 »

  1.   

    重置一下root 的密码试一下
    如何重置root密码可以参考下贴三楼
    http://topic.csdn.net/u/20090515/21/2b3c9a12-d8a5-4bb1-9895-6069cef5aef8.html
      

  2.   

    Windows:1. 管理员登陆系统,停止mysql服务或者结束mysqld-nt进程
    2. 进入命令行,来到mysql的安装目录.假设安装目录为 d:\mysql\ , CMD进入命令行
    3. 运行 d:\mysql\bin\mysqld-nt --skip-grant-tables 启动mysql,关闭权限的检查
    4. 运行 d:\mysql\bin\mysqladmin -u root flush-privileges password "newpassword" 重设root密码
    5. 重新启动mysql服务------
    你是说这个吧,第三步运行 d:\mysql\bin\mysqld-nt --skip-grant-tables 
    提示:‘mysqld-nt' is not recognized as an internal or external command,operable program or batch file.
      

  3.   

    我按照3楼的做了,还是进不去,
    打开MySQL Command Line Client提示我输入密码,我输入新设的密码,结果黑框还是就消失了
    我在cmd运行mysql提示这个:ERROR 2003(HY000):can't connect to MySQL server on 'localhost' (10061)
      

  4.   

    试试你重装前使用root密码能不能登录。
      

  5.   

    我现在能用cmd进去,用navicat就连接不了,错误代码1045,我用户名和密码都没有输错,但就连不了,搞到头都大了。