Aur*_*rel 4 database windows postgresql configuration postgresql-9.3
我目前正在Windows计算机上设置postreSQL服务器.
我想创建我的第一个数据库,但由于密码验证失败而无法创建createdb函数.因此,我在本网站上发现了以下问题:
但是,我想我忘记了; 在......的最后 :
ALTER USER postgres with encrypted password 'xxxxxxx';
Run Code Online (Sandbox Code Playgroud)
现在,当我尝试启动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 . . .
Run Code Online (Sandbox Code Playgroud)
知道我能做些什么来解决这个问题?
你认为它真的是导致这个问题的缺失的半列吗?
你有关于如何在Windows上设置postgreSQL数据库的任何教程吗?到目前为止,我发现的所有内容仅适用于Linux.
您获得的错误似乎来自Postgres当前未运行,而不是您假定的身份验证错误.PSQL客户端或您正在使用的任何PG客户端都试图在默认端口上建立连接,但没有任何东西存在.
如果Postgres当前没有运行,请尝试查找它(通过CTRL-Alt-Delete).如果它正在运行,请尝试终止它并再次启动它.希望能解决问题...否则您的端口5432可能会因某些原因被阻止.
如果全部失败,我仍然怀疑括号可能导致此错误,因为它不是身份验证错误.尝试使用全新安装重新安装Postgres.