Installed Programs Not recognized in Terminal (Windows)

Sarthaki BhoirSarthaki Bhoir
1 min read

Fix It Fast by Adding it to PATH

When you install software like *PYTHON* *MinGW* *MySQL* typing commands like ‘python’, ’gcc’, ’ mysql’, in terminla gives you error:

'mysql' is not recognized as an internal or external command.

Fix It Fast: Add the software to your PATH.

1. Go to the folder where you have installed the software and select the path.

2)Type Environment Variables in your search bar.Open → Edit the system environment variables

Click on Environment Variables

3)Under System Variables ,find and select PATH ,click EDIT

4)Click NEW and paste the folder path copied from step1)

5)Click OK on all windows to save Changes.Open new Terminal type mysql or gcc —version based on the software you added.

STORY BEHIND THE BUG

The PATH environment variable is like a list of folders your operating system searches whenever you run a command.

  • Example: When you type python, the system looks in each folder listed in PATH until it finds python.exe.

  • If the folder containing the executable isn’t in PATH → command not found error.

Adding programs to PATH allows you to run their commands from anywhere, without navigating to their installation folder.

0
Subscribe to my newsletter

Read articles from Sarthaki Bhoir directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Sarthaki Bhoir
Sarthaki Bhoir