The installed openGauss database is always wrong, prompted by the figure below:Failed to obtain the environment variable PGHOST.

Traceback (most recent call last):

File “gaussdb/om/script/gs_install”, line295,in <module> DefaultValue.setActionFlagFile(“gs_install”)

File “gaussdb/om/script/gspylib/common/Common.py”, line 2230,in setActionFlagFile

Raise Exception(ErrorCode.GAUSS_518[“GAUSS_51802”]%“PGHOST”)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.