我想导出和导入 .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   


评论关闭
IT序号网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!