【发布时间】:2020-12-05 16:28:17
【问题描述】:
pg_ctl status
pg_ctl: no database directory specified and environment variable PGDATA unset
Try "pg_ctl --help" for more information.
C:\Users\Think>pg_ctl --help
pg_ctl is a utility to initialize, start, stop, or control a PostgreSQL server.
不知道pg_data目录在哪里,我把C:\Users\Think\Desktop\postgres\data设置为用户变量和系统变量中窗户设置。 但仍然无法正常工作。 bin目录下,有pg_ctl.exe文件。
【问题讨论】:
-
你有没有读过pg-ctl或PostgreSQL的文档,或者你认为阅读文档是浪费时间,你可以问别人如何使用PostgreSQL及其应用程序?
标签: postgresql cmd database-administration