相关疑难解决方法(0)

postgres 不知道在哪里可以找到服务器配置文件

我已经安装了 PostgreSQL,但是当我postgres在 Windows CMD 中运行命令时

它给出以下错误:

postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
Run Code Online (Sandbox Code Playgroud)

即使在运行命令之后

  • initdb postgres维持类似的问题
  • postgres -D C:\Program Files\PostgreSQL\data\ 给了我以下输出:
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
Run Code Online (Sandbox Code Playgroud)

postgresql

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

postgresql ×1