14

I'm on a windows machine and I am having trouble fixing this error:

I've tried to modify the path variable based on various suggestions online but nothing seems to work. I've been at this for over an hour.

I'm curious what exactly I am suppose to do to have the path variable read.

I'm on Windows 10.

I think I need idiot proof step-by-step instructions.

Here is an example of one of my attempts:

enter image description here

When I run psql from the command prompt it is not recognized.

3
  • I initially typed windows 11...I meant windows 10. Sorry. If you could please remove the down vote I would appreciate it Commented Sep 20, 2016 at 19:17
  • 1
    What exactly did you try and are you sure it's a programming problem instead of a software question? Commented Sep 20, 2016 at 19:19
  • I added a screen shot of one example. But like I said , I've been at it for over an hour Commented Sep 20, 2016 at 19:28

2 Answers 2

16

The PATH contains directories, not the actual executable.

And programs are installed in c:\Program Files not c:\Windows\Program Files.

So you need to add c:\Program Files\PostgreSQL\9.6\bin to the path.

Sign up to request clarification or add additional context in comments.

Comments

3

first, you have to set the path for this go to program files search for PostgreSQL folder then a folder come click on it then you will see bin folder click on there where the arrow is pointing you will get the path like this C:\Program Files\PostgreSQL\13 copy it enter image description here

then left-click on this PC, Click on properties Click on the advance system setting on your left hand side a prompt is open then click on an environment variable enter image description here

Click on the path click on edit then click on new then paste this C:\Program Files\PostgreSQL\13 enter image description here

your environment is set then go to cmd type psql -U Postgres then type the password boom done

1 Comment

why doesnt this get done when running the official installer?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.