直接在bin目录里输入 mysqldump --help 是可以打印出帮助信息的
但是输入类似于 mysqldump -h localhost -uroot -p123456 test > 1.sql 的语句就直接提示“拒绝访问。”别的什么都没了。
环境:
1、win7 64位系统
2、mysql: mysql-essential-5.1.58-winx64.msi
麻烦知道的高手帮忙说下!

解决方案 »

  1.   

    那你先试一下。c:> mysql -uroot -p123456
      

  2.   

    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 7
    Server version: 5.1.58-community MySQL Community Server (GPL)Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
    This software comes with ABSOLUTELY NO WARRANTY. This is free software,
    and you are welcome to modify and redistribute it under the GPL v2 licenseType 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>可以正常进入!
      

  3.   

    下面就是运行导出时DOS显示的消息:C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqldump -h localhost -uroot -p1234
    56 test tree > t.sql
    拒绝访问。
      

  4.   

    C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqldump -uroot -p123456 test试一下。
      

  5.   

    看看是否test数据库没法访问
      

  6.   

    mysql -h localhost -uroot -p123456 test 试试
      

  7.   

    我也不知道为什么?我现在就是管理员权限,不是administrator.
    我要在上面点右键,以超级管理员身份运行才可以,可能是win7 权限控制的问题。
    有没有有更好的办法?
      

  8.   

    应该是UAC之类的问题吧!刚用win7,不熟!
    不过在这里给刚用win7并且是用标准账户的同志们一点建议:如果软件使用不正常的话,试试右键-run as Administrator,应该就解决了。要不就关闭UAC,或提升权限!
      

  9.   

    我的情况跟你一样的,请教一下,你是不是选择mysqldump.exe,右键在快捷菜单中选择run as Administrator,但是我这样运行,窗口一晃就没了,这是什么情况啊?
      

  10.   

     如果你安装过程没出错的话,就试着用管理员身份先运行cmd.exe,然后再cmd里面运行mysqldump.exe,这样如就可以看到返回地信息,再做判断。