0

On Windows 10, I installed MySQL server 5.6 with the VS 2013 integration option. Now when I open the VS2013 Developer Command Prompt, I get:

'MySQL' is not recognized as an internal or external command, operable program or batch file.

I realized it was a %PATH% issue so I added the path to MySQL\bin in HKEY_CURRENT_USER\Environment\Path and re-opened the command prompt. Still got the error. Rebooted the computer. Still got the error.

I re-opened regedit and the path was as I amended it. I went through Environment Variables in System/Advanced settings and the User PATH and System PATH both matched the change I made in the registry.

Weird thing is when I ECHO %PATH% it doesn't match.

4
  • Have you tried cd (the path of VS2013) then enter. Then the command you want to type
    – Racing121
    Commented Aug 15, 2015 at 18:09
  • Are you starting the Developer Command Prompt as an Administrator?
    – heavyd
    Commented Aug 15, 2015 at 20:46
  • Yes heavyd, starting the prompt as admin Commented Aug 16, 2015 at 16:05
  • Racing121, I am trying to get at the root of why the PATH in the Developer Command prompt does not match the System PATH environment variable or the User Path environment variable and how I can sync it up to stop getting this error on every launch. Commented Aug 16, 2015 at 16:07

1 Answer 1

0

If you open a VS developer command prompt and the PATH environment variable contains something like C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 (ends there), the problem is related to this issue. The full path should end with MySQL Fabric 1.5 & MySQL Utilities 1.5.

Follow the instructions there to fix both of the problematic entries (yes, there are two, they are in the Path system variable and the first is also blocking the rest from being included). Keep in mind that the quotes will not show up in the list the next time you open the environment variables dialog. You have to reboot for the changes to take effect.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .