如何在Windows 10上设置Postgres路径变量 [英] How to set Postgres path variable on Windows 10
问题描述
我在Windows计算机上,但无法解决此错误:
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.
我在Windows 10上。
I'm on Windows 10.
我认为我需要白痴证明循序渐进的说明。
I think I need idiot proof step-by-step instructions.
以下是我尝试之一的示例:
Here is an example of one of my attempts:
当我从命令提示符运行 psql 时,无法识别它。
When I run psql from the command prompt it is not recognized.
推荐答案
PATH
包含目录,
并且程序安装在 c:\Program Files
中,而不是 c:\Windows\程序文件
。
And programs are installed in c:\Program Files
not c:\Windows\Program Files
.
因此,您需要将 c:\Program Files\PostgreSQL\9.6\bin
添加到路径。
So you need to add c:\Program Files\PostgreSQL\9.6\bin
to the path.
这篇关于如何在Windows 10上设置Postgres路径变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!