连接数据库时怎么出现这样的错误:[localhost] ERROR 1045: Access denied for user 'root'@'localhost' (using password: YES)

解决方案 »

  1.   

    刚学mysql,照着书上学的,书上用的MySQL Control Center,刚安装的时候,还可以连接,今天点击localhost下的connect就出现了上面的错误。密码设置的1234567890。而且在cmd中输入密码后,命令窗口自动消失
      

  2.   

    初学的话,建议先从命令行开始。直接用MYSQL.exe 来进行操作。
    建议花15分钟看一下下面的这个MYSQL官方教程。
    http://dev.mysql.com/doc/refman/5.1/zh/tutorial.html
      

  3.   

    C:\Documents and Settings\zxh>mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 2
    Server version: 5.1.34-community MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>
    既然是root 权限应该足够了 可能是密码问题