The ‘post-psql’ command is not recognized in the Windows environment

存储架构 Hello, buddy! (源链)

It seems like I have it set up, I have my database.yml using postgres, and I can connect the database with pgadmin III, but when I tried using the psql command to test what version, it says that is is not recognized? Any idea what I should be doing?

I’m using windows and using command prompt with Ruby on Rails. Using PostgreSQL 9.2 installed with the EnterpriseDB one-click installer.

Assuming you installed PostgreSQL on Windows with the PostgreSQL “One-click” installer packaged by EnterpriseDB, psql
is not added to the PATH
automatically. That’s partly because adding it to the path could otherwise cause confusion when people have multiple versions of PostgreSQL installed.

You need to specify the full explicit path to psql
, eg:

"%PROGRAMFILES%Postgresql9.2binpsql.exe"

or add psql
to the user PATH
environment variable, see eg this guide
.

您可能感兴趣的

Compile NodeJS C++ modules on Windows? Node.js Recipes are structured in a Cookbook format featuring recipes that contain problem statements and solutions. A detailed explanation foll...
Windows Mixed Reality headset prices cut in half o... The big promise of Windows Mixed Reality headsets was to bring augmented andvirtual reality and anything in between to people at more reasonable pric...
渗透中的ADS 为了测试,在这里使用Cobaltstrike 生成一个exe,用来查看文件是否上传成功,并可以顺利执行, 每次上传文件以后,服务器自动删除 ,如下图: PS: meterpreter会话是通过powershell web_delivery获取的 尝试创建文件夹成...
RAM-less Buffers Introduction Have you ever looked at the x86 SSE or AVX registers in a debugger and wanted to use their bytes as a contiguous on-core buffer? ...
Credential Helper John S. worked with a customer who still owned several Windows 2008/R2 servers. Occassionally during automated management and deployments, these...
Hello, buddy!责编内容来自:Hello, buddy! (源链) | 更多关于

阅读提示:酷辣虫无法对本内容的真实性提供任何保证,请自行验证并承担相关的风险与后果!
本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » The ‘post-psql’ command is not recognized in the Windows environment



专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录