我目前正在Windows计算机上设置postreSQL服务器。
我想创build我的第一个数据库,但由于密码validation失败,无法创buildcreatedb函数。 因此我在这个网站上发现了以下问题:
如何第一次configurationpostgresql?
不过,我想我忘了; 在……的最后 :
ALTER USER postgres with encrypted password 'xxxxxxx';
而现在,当我尝试启动psql时,我有以下错误:
Server [localhost]: Database [postgres]: Port [5432]: Username [postgres]: Active code page: 1252 psql: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? Press any key to continue . . .
任何想法我可以做什么来解决这个问题?
你认为这真的是导致问题的失踪半列吗?
你有任何教程如何在Windows上设置postgreSQL数据库? 到目前为止,我发现的只有Linux。
你得到的错误似乎来自Postgres目前没有运行,而不是像你所假设的认证错误。 PSQL客户端或任何你正在使用的PG客户端试图在默认端口上建立连接,但没有任何内容。
如果Postgres当前没有运行,请尝试找到它(通过CTRL-Alt-Delete)。 如果正在运行,请尝试终止并重新启动它。 希望能解决这个问题…否则你的端口5432可能因某种原因被阻塞。
如果全部失败,我仍然怀疑括号可能会导致此错误,因为它不是一个身份验证错误。 尝试用干净的安装重新安装Postgres。