我卸载了一下mysql,在安装就装不上了.在mysql server instance configuration出现的错误信息是 
connection error
the securty could not be the database because the connection has failed with the folowing error
error NO 1045 
access denyed for user 'root'@localhost[using password yes]大概信息就是这样 求大家帮忙 小弟第一次在论坛提问 可能问的有些离谱 见笑...

解决方案 »

  1.   

    http://topic.csdn.net/u/20090515/21/2b3c9a12-d8a5-4bb1-9895-6069cef5aef8.html参照三楼的做法,试一下
      

  2.   

    去删除所有的数据库文件.删除WINDOW目录下的MY.INI文件,还需要进入注册表删除以下内容:
    A.HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL 目录删除
    B.HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL 目录删除
    C.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL 目录删除
    D.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl001t\Services\MYSQL 目录
    E.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl002\Services\MYSQL 目录
    F.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSQL 目录
    总结一句话.WINDOWS目录下的MY.INI是祸害的根源,注册表中的EVENTLOG下的那些目录也是很需要注意的,但没有前者重要!
      

  3.   

    多谢2位 不过两种方法都不行 注册表修改完不好使..
    这个命令输入完 返回这个信息
    C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqld  --defaults-file="C:\ProgramCould not open required defaults file: C:\Program
    Fatal error in defaults handling. Program abortedC:\Program Files\MySQL\MySQL Server 5.1\bin>Files\MySQL\MySQL Server 5.1\my.ini"
     --console --skip-grant-tables
      

  4.   

    mysqld  --defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" --console --skip-grant-tables 老兄你的命令没敲完整啊。
      

  5.   

    不好意思 上边命令错了 
    输入正确命令
    不断的循环出下面的错误 ctrl+c 都不好使  就得关闭cmd  
    mysqld  --defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" --console --skip-grant-tables 
    090920 12:15:11 InnoDB: Operating system error number 32 in a file operation.
    InnoDB: the error means that another program is using InnoDB's file
    InnoDB: this might be a backup or antivirus software or another instance 
    InnoDB: of mysql .please close it to get rid of this error .
      

  6.   

    是不是你的mysqld已经启动了?先把已经在运行的mysqld 先停下来。
      

  7.   

    Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqladmin shutdown 
    都做完了  然后配置这个 MySQL Server Instance Config Wizard ???
      

  8.   

    不需要啊,直接mysqld  --defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" --console --skip-grant-tables 
    用这个命令把mysqld服务启出来,然后以root longin
      

  9.   

    上边那个mysqld  --defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" --console --skip-grant-tables 
    执行成功了 登录不上去 哒的一声就玩完了 加你QQ下行吗? 远程协助下。   谢谢
      

  10.   

    上边那个mysqld  --defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" --console --skip-grant-tables 
    执行成功界面是什么?贴出来看一下,应该是port ready for connection之类的。然后你再打开另一个dos, mysql -uroot 进去试试。
      

  11.   

    这个方法确实可以用 我刚才还创建了个database 但是mysql client 还是不能用啊 也不能总那么上啊 呵呵 谢谢了 
      

  12.   

    mysql client 
    是什么?另外的工具?那检查一下你的权限。
      

  13.   

    mysql command line client 就是mysql自带的那个命令窗口啊 
    用你教给我那方法密码都不用输 我都不知道什么用户 我重装后第一次用 应该只有root吧?
    用不能没次都用这个 方法啊mysqld  --defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" --console --skip-grant-tables 
    一般都输一个密码不就OK了?我输密码一下就弹没了 。
      

  14.   

    把mysql卸载,并且把残留在c盘和安装目录的文件全部删除,然后下载一个windows优化大师,清理注册表,再安装,就可解决