Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku installation error in windows

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?

like image 258
Rahul Gupta Avatar asked May 04 '15 14:05

Rahul Gupta


People also ask

How do I know if heroku is installed on Windows?

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.

Why heroku CLI is not working?

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 .


2 Answers

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.

like image 145
Sanjay Rawat Avatar answered Sep 21 '22 06:09

Sanjay Rawat


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

like image 25
Chammi Weerasekera Avatar answered Sep 20 '22 06:09

Chammi Weerasekera