我目前正在Windows计算机上设置postreSQL服务器。连接拒绝PostgreSQL服务器
我想创建我的第一个数据库,但由于密码验证失败而无法创建createdb函数。因此,我发现这个网站上的以下问题:
How to configure postgresql for the first time?
不过,我想我忘了;在结束:
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。
嗨,谢谢你的回答。我重新启动了电脑几次,但没有解决问题。删除所有配置文件后卸载并重新安装解决了问题,尽管我宁愿找到一个更好的方法来解决问题。 – Aurel
配置文件可能有一些错误的参数(可能是错误的端口号或注释掉的部分)。很高兴它解决了 – edenzik