在本人机器上安装了pgsql10后,自带的pgadmin安装后运行时能打开edge并显示数据库server和数据库的,后来又安装了pgsql17,结果安装后想打开pgadmin,结果一直在等待最后,爆出类似于下面的错误。
pgAdmin Runtime Environment -------------------------------------------------------- Python Path: "C:\Users\rishu\Downloads\v5\python\python.exe" Runtime Config File: "C:\Users\rishu\AppData\Roaming\pgadmin\runtime_config.json" pgAdmin Config File: "C:\Users\rishu\Downloads\v5\web\config.py" Webapp Path: "C:\Users\rishu\Downloads\v5\web\pgAdmin4.py" pgAdmin Command: "C:\Users\rishu\Downloads\v5\python\python.exe -s C:\Users\rishu\Downloads\v5\web\pgAdmin4.py" Environment: - ALLUSERSPROFILE: C:\ProgramData - APPDATA: C:\Users\rishu\AppData\Roaming - CHROME_CRASHPAD_PIPE_NAME: \\.\pipe\crashpad_1536_DOVQUCMVUYAPISQG - CHROME_RESTART: NW.js|Whoa! NW.js has crashed. Relaunch now?|LEFT_TO_RIGHT - CommonProgramFiles: C:\Program Files\Common Files - CommonProgramFiles(x86): C:\Program Files (x86)\Common Files - CommonProgramW6432: C:\Program Files\Common Files - COMPUTERNAME: DESKTOP-1AQJ5O2 - ComSpec: C:\WINDOWS\system32\cmd.exe - DriverData: C:\Windows\System32\Drivers\DriverData - HOMEDRIVE: C: - HOMEPATH: \Users\rishu - LOCALAPPDATA: C:\Users\rishu\AppData\Local
然后卸载17有重新安装postgresql10,结果点击pgadmin后也弹不出edge管理界面了,这下糟糕极了,看了网上好多方法,只有一个是可行的。
"C:\Users\<USERNAME>\AppData\Roaming\pgadmin"
"C:\Users\<USERNAME>\AppData\Roaming\pgadmin4"
然后就ok了。