Strange response (about MySQL) for entering geiker on windows (closed)

I have heroku toolkelt installed on Windows7 (x64 HomeEd). When I try to login to heroku, I get a strange message about MySQL (although MySQL already works fine with all the software installed):

Microsoft Windows [Version 6.1.7601]
(c) Microsoft Corp., 2009. All rights reserved.

C:\windows\system32>heroku login
"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.

C:\windows\system32>

      

Exactly as shown - twice. Does heroku.bat

n't call MySQL at any step as I found . I think the OS is running multiple script (a kind of autoexec) immediately before or in parallel with heroku.bat

, but I can't seem to find a way that needs it. This is supported by the fact that when I run other bat files the same two messages about MySQL appear. Can you help me find how this strange script is called?


Detailed investigation revealed that the cause was a MySQL component named "MySQL Fabric 1.5.3 and MySQL Utilities 1.5.3 1.5". During installation, MySQL added its location to the Path environment variable. This caused the contents of the Path variable to break with the "&" character and any reference to the Path variable results in an error

+3


source to share


2 answers


It seems that at some point a script is trying to call MySQL.exe

and that file cannot be found. To fix this problem, you must add the directory containing MySQL.exe to %PATH%

. First make sure MySQL.exe is on your system. If you don't know where it is, run CMD, go to root directory ( CD \

) end enter dir /S MySQL.exe

. This will search your drive for the file and show you the path where it can be found. Save the path somewhere.

Now that you know where the file is located, you should add it to your% PATH% folder. To do this, enter setx PATH "<NEWPATH>;%path%;"

where the path to the directory containing MySQL.EXE is. Remember ;%path%;

, this is very important. If you don't put it there, it will mess up your% PATH%.



Close your console, open a new one and type heroku login

. This should fix the problem.

Now, if you are not interested in fixing the error and just want to know where it came from, you should post the batch file code that is executed by calling heroku login

.

0


source


Just remove C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;

from your path (it breaks the situation, is added during MySQL installation) and add the path to bin in MySQL. For me itC:\Program Files\MySQL\MySQL Server 5.7\bin



0


source







All Articles