Errabbah Tarik
Errabbah Tarik

Reputation: 224

-bash: mysqldump: command not found MAC OS X

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

Answers (2)

Andrew
Andrew

Reputation: 3969

XAMPP includes all of the MySQL binaries:

/Applications/XAMPP/bin/mysqldump

Upvotes: 3

Errabbah Tarik
Errabbah Tarik

Reputation: 224

It work well now, I just changed:

/Applications/MAMP/Library/bin/mysqldump

by:

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

Upvotes: 15

Related Questions