简体   繁体   English

Grunt部署/ bin / sh:mysql:命令未找到

[英]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). 我开始使用Grunt.js来管理重复工作的工作流,现在我被数据库部署所困扰(对我来说,这是潜在的巨大错误源)。

I've installed the grunt-deployment package and I can pull down the remote database, as well as push to it (theoretically). 我已经安装了grunt-deployment软件包,并且可以拉出远程数据库,也可以将其推入(理论上)。 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. 我还将AMPPS用于我的本地开发。

The environment I'm in is Mac OS X, using AMPPS as my apache/mysql server. 我所处的环境是Mac OS X,使用AMPPS作为我的apache / mysql服务器。

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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