Reputation: 224
I want to export and import a .sql
file from MySQL server from to my machine with a command line:
/Applications/MAMP/Library/bin/mysqldump -P 3306 -h server -u login -p passwd database > db_backup.sql
But I get this error:
-bash: /Applications/MAMP/Library/bin/mysqldump: No such file or directory
Upvotes: 3
Views: 22978
Reputation: 3969
XAMPP includes all of the MySQL binaries:
/Applications/XAMPP/bin/mysqldump
Upvotes: 3
Reputation: 224
It work well now, I just changed:
/Applications/MAMP/Library/bin/mysqldump
by:
/Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump
Upvotes: 15