-bash: mysqldump: command not found MAC OS X

19,014

Solution 1

It work well now, I just changed:

/Applications/MAMP/Library/bin/mysqldump

by:

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

Solution 2

XAMPP includes all of the MySQL binaries:

/Applications/XAMPP/bin/mysqldump
Share:
19,014
Errabbah Tarik
Author by

Errabbah Tarik

Updated on June 04, 2022

Comments

  • Errabbah Tarik
    Errabbah Tarik almost 2 years

    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