运行pgAdmin出现”pgAdmin 4 the application server could not be contant“ 窗口。
参考:https://stackoverflow.com/questions/40083391/postgresql-cant-connect-application-server-through-pgadmin4
解决方式:
1. c:\Users\your_name\AppData\Roaming\pgAdmin 之内的删除所有文件和文件夹
2.C:\Program Files\PostgreSQL\10\pgAdmin 4\web 找到config_distro.py文件
添加:
MINIFY_HTML=False
DATA_DIR = "C:/Data/pgAdmin" # set non-ascii path here
则为:
SERVER_MODE = False HELP_PATH = ‘../../../docs/en_US/html/‘ MINIFY_HTML=False DATA_DIR = "C:/Data/pgAdmin" # set non-ascii path here DEFAULT_BINARY_PATHS = { "pg": "C:\\Program Files\\PostgreSQL\\10\\bin", "ppas": "" }
如图进入状态: