我想导出和导入 .sql
使用命令行从 MySQL 服务器到我的机器的文件:
/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