-
Notifications
You must be signed in to change notification settings - Fork 169
MAMP tips
Alessandro Fazzi edited this page May 29, 2018
·
4 revisions
N.B.: MAMP here is really the Mac version. Instructions could be different for XAMP for Linux
Ensure to have mysqldump
executable in $PATH, following these instructions
- probably if you type
mysqldump
in your terminal you'll get something similar to "command not found" - probably using
/Applications/MAMP/Library/bin/mysqldump
will give you something like
+Usage: mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]
For more options, use mysqldump --help
- if not, try to find where your executable is with this command
$ sudo find /Applications -type f -name mysqldump
copy the resulting path and try to lunch it. I'm considering from now on that the right path for you is the first I've mentioned: /Applications/MAMP/Library/bin/mysql
- proceed with these commands
$ echo '# Add MAMP bin directory into $PATH' >> ~/.bashrc
$ echo 'PATH="/Applications/MAMP/Library/bin:$PATH"' >> ~/.bashrc
$ echo 'PHP_VERSION=$(ls /Applications/MAMP/bin/php/ | sort -n | tail -1)' >> ~/.bashrc
$ echo 'export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH' >> ~/.bashrc
$ echo 'source $HOME/.bashrc' >> ~/.bash_profile
- close and reopen your terminal and try to invoke command
mysqldump
. If it responds correctly then also Wordmove should be able to use it correctly