我收到此消息但我找不到postgresql.conf文件:
OperationalError: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "???" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "???" and accepting
TCP/IP connections on port 5432?
Run Code Online (Sandbox Code Playgroud)
jon*_*scb 88
在我的机器上:
C:\Program Files\PostgreSQL\8.4\data\postgresql.conf
spl*_*ash 24
postgresql.conf位于PostgreSQL的数据目录中.数据目录的设置期间配置和设置将被保存为PGDATA在条目c:\Program Files\PostgreSQL\<version>\pg_env.bat中,例如
@ECHO OFF
REM The script sets environment variables helpful for PostgreSQL
@SET PATH="C:\Program Files\PostgreSQL\<version>\bin";%PATH%
@SET PGDATA=D:\PostgreSQL\<version>\data
@SET PGDATABASE=postgres
@SET PGUSER=postgres
@SET PGPORT=5432
@SET PGLOCALEDIR=C:\Program Files\PostgreSQL\<version>\share\locale
Run Code Online (Sandbox Code Playgroud)
或者,SHOW config_file;如果您是超级用户,则可以查询数据库.
| 归档时间: |
|
| 查看次数: |
78843 次 |
| 最近记录: |