首先尝试
c:> mysql -uroot -p123456
如果可以正常进入
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 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
可以正常进入!
尝试数据库连接
mysqldump -uroot -p123456 test
如果这个也可以 大部分的问题 可能是你对你要输出文件夹没有写的权限