-bash: mysqldump: 找不到命令 MAC OS X

-bash: mysqldump: command not found MAC OS X

我想使用命令行从 MySQL 服务器导出和导入 .sql 文件到我的机器:

/Applications/MAMP/Library/bin/mysqldump -P 3306 -h server  -u login  -p passwd  database  > db_backup.sql

但是我得到这个错误:

-bash: /Applications/MAMP/Library/bin/mysqldump: No such file or directory

现在运行良好,我刚刚更改:

/Applications/MAMP/Library/bin/mysqldump

作者:

/Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump  

XAMPP 包括所有 MySQL 个二进制文件:

/Applications/XAMPP/bin/mysqldump