简体   繁体   中英

Grunt Deployments /bin/sh: mysql: command not found

I'm beginning to use Grunt.js to manage my workflow for repeated tasks and right now I'm stuck on database deployment (a huge source of potential errors for me).

I've installed the grunt-deployment package and I can pull down the remote database, as well as push to it (theoretically). However locally I get the error:

/bin/sh: mysql: command not found

Or

/bin/sh: mysqldump: command not found

I'm not sure where I should be adding those commands, or how. I'm also using AMPPS for my local development.

The environment I'm in is Mac OS X, using AMPPS as my apache/mysql server.

将AMPPS MySQL放在PATH环境中,一切都很好。

export PATH=$PATH:/Applications/AMPPS/mysql/bin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM