Mysql is not recognized as an internal or external command, operable program or batch file

Follow this steps:

  1. Go to Control Panel -> System -> Advanced
  2. Click Environment Variables
  3. Under System Variables find PATH and click on it.
  4. In the Edit windows, find the end of the string of paths (each path needs to be separated by a semi-colon “;” so you may need to add that to the end) add the path to your mysql\bin folder to the end paths.
  5. Go back to Desktop
  6. Close any command prompts you may have open Got to do this so the new $PATH variable will load.
  7. Re-open command prompt. Try running mysql -uroot and if the path was set correctly, mysql will now run.