gpt4 book ai didi

sql - pg_ctl : no database directory specified and environment variable PGDATA unset

转载 作者:行者123 更新时间:2023-11-29 14:16:57 25 4
gpt4 key购买 nike

当我运行命令:pg restart on windows 10 时出现以下错误:pg_ctl: 未指定数据库目录且环境变量 PGDATA 未设置

最佳答案

您需要指定数据库目录的安装位置。

例如

pg_ctl restart -D [insert directory location here]

否则您将需要设置环境变量 PGDATA。有点像

 set $PGDATA = [directory location here]

关于sql - pg_ctl : no database directory specified and environment variable PGDATA unset,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44762526/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com