这个明显是你的登陆用户名和密码不正确
你可以先用root登陆以后再查看mysql.user表

解决方案 »

  1.   

    D:\Mysql\bin>mysql -uroot -p
    enter password:******
      

  2.   

    D:\Mysql\bin>mysql -uroot -pyourpassword
    主意-p和后面的密码没有空格.
      

  3.   

    D:\Mysql\bin>mysql -uroot就可以了....
      

  4.   

    不会吧,我的密码是正确的啊。(Using password: YES)
      

  5.   

    :\Mysql\bin>mysql -p
    Enter password: ********
    ERROR 1045: Access denied for user: 'ODBC@localhost' (Using password: YES)以上的错误,在于用户名为'ODBC',再使用密码,需要确认一下用户'OBDC'有没有访问数据库的权限,如果没有的话,如果使用root用户,则使用如下的命令,应该就可以了:\bin>mysql -u roo -p