I have installed Heroku toolbelt in my windows machine. But after executing heroku login
I am getting the following error:
'MySQL' is not recognized as an internal or external command, operable program or batch file. 'MySQL' is not recognized as an internal or external command, operable program or batch file.
! Git must be installed to use the Heroku Toolbelt. ! See instructions here: http://git-scm.com
I have already installed git, MySQL and all are working using cmd directly and my rails app is working correctly on my localhost. The strange thing is why heroku is even using mysql since I'm just loggin in. How can I resolve this issue?
Open Command Prompt by right-clicking the Start Menu, choose Run, enter cmd and click OK. Now type heroku and press enter. If you receive a help message, heroku-cli was installed successfully.
If you're having issues with the CLI, ensure that you're using the latest version. If you're not, try updating with heroku update . Not all methods of installation support heroku update . If you installed the CLI with apt , you must use sudo apt-get update && sudo apt-get upgrade heroku .
I was also getting the same error. I finally resolved it by changing the Path
variable.
Escape the ampersand with a caret (^)
C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4
^&
MySQL Utilities 1.5.4 1.5\;
Note: Replace all occurrence of &
by ^&
. There could be 2 or more occurrence.
This is failing due to a bug in Heroku launcher script as it doesn’t properly escape ampersands in the PATH
environment variable.
You might have an &
sign possibly in your MySQL path for MySQL Fabric & MySQL Utilities
source: https://discussion.heroku.com/t/heroku-installation-error/1149
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With