F
F
Fedor_PV2018-08-17 19:29:19
PostgreSQL
Fedor_PV, 2018-08-17 19:29:19

Can't install PostgreSQL on Windows 10?

I can't install PostgreSQL, I did everything according to the instructions, I've already demolished and reinstalled it three times, the instruction DOES NOT WORK, or is outdated. Windows 10 system.
Downloaded, everything is in the folder C:\Program Files\PostgreSQL\10
Unpacked everything, everything was installed, the window closed. Then I did it according to the instructions - I opened the command line, entered
setx PATH "%PATH%;C:\Program Files\PostgreSQL\10\bin"
In response, the computer writes: "Warning. The saved data will be truncated to 1024 characters. Success. The specified value is saved ."
Further, according to the instructions, I closed the command line, rebooted. And... N-I-W-E-G-O, on the command line, when I try to type at least psql, "psql" is not recognized as an internal or external command, operable program, or batch file.
Well, what else do you need? Hands down from these endless instructions that do not work! Help, Guru Janga….

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
SagePtr, 2018-08-19
@Fedor_PV

Try not to install through the command line (which is very primitive in Windows), but through the properties of "my computer" -> Advanced -> Environment variables.
If you can’t install it there, then edit the value of the variable and throw out any garbage from programs that were once installed but are no longer used, or are not so important.

F
freeExec, 2018-08-17
@freeExec

1) edit your PATH environment variable, cutting out the trash from there;
2) Use the full path to launch: C:\Program Files\PostgreSQL\10\bin\psql
PS. What kind of young people have gone, a step to the left of the instructions and everything is gone, you must already add to the last paragraph - throw out the computer.

K
kalapanga, 2018-08-17
@kalapanga

First, look at your path variable, if the path to the postgres is not added there, then what is surprising that Windows does not find psql? At the same time, you will see if there is anything superfluous there and if this path can be shortened.
Secondly, who needs a postgres path in path? If you need to run psql, well, you go to the right directory and work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question