第一次运行  SQLYOG    WIN7的系统 这个怎么解决啊?错误代码 1045  
Access denied for user ''@'localhost' (using password:YES)
先写了~~!

解决方案 »

  1.   

    {mysql安装目录}\bin\mysqladmin.exe  -u root password "123"
    用户名root
    密码123
      

  2.   

    找到了,之后要怎么办啊?  
    - u root password "123"  
    这个要怎么做啊?
    添加到属性了面?
      

  3.   

    在命令提示符中运行了,但是里面   -u  后面是 --user=name 
                                  password 后面是 关于如何更改密码的~~!
      

  4.   

    参考下贴中的检查方法并贴出你的检查结果(#43楼)http://topic.csdn.net/u/20090920/22/14d4f597-b7d4-4c24-b0db-abb2956e66c3.html
    [收集]mysql   无法联接故障现象及原因
      

  5.   

    嗯,顶版大。
    1. PING hostname 或 PING 189.xx.xx.xx 确认服务器IP层通信没有问题。如果PING通则继续(2),PING不通则找网络方面专家协助。
    2. TELNET hostname 3306 确认服务器TCP层通信没有问题。(你的端口号可能不是3306),如通则继续,如不通,请检查mysqld 是否已经在运行,防火墙屏蔽了端口。
    3. 检查用户权限, show grants ...
      

  6.   

    D:\MySQL Server 5.1\bin>mysql -uroot -p
    Enter password: ******
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 12
    Server version: 5.1.40-community-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>
      

  7.   

    我是第一次运行,没有密码。按照你的方法,总是提示 access denied for user 'ODBC'@localhost' <using password : YES>
      

  8.   

    你根本就没设置用户名!你还是先用MYSQL自带的命令行工具先学习吧。
      

  9.   

    要是你只想进去mysql,而又提示:
    Access denied for user ''@'localhost' (using password:YES)错误:1045 SQLSTATE: 28000 (ER_ACCESS_DENIED_ERROR) 
    消息:拒绝用户'%s'@'%s'的访问(使用密码:%s)方法: 在mysql的配置文件my.ini 的mysqld的选项组里面添加:skip-grant-tables 选项,
    只要mysql -uroot 就进去了;