我已经安装了 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 ×1