postgresql 在 mac 上打开 pgAdmin 4 时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44101231/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error when opening pgAdmin 4 on mac
提问by Fredy B.
I have installed version 4-1.5, but when opening it, it always shows this error "The application server could not be contacted."
我已经安装了4-1.5版本,但是打开时总是提示“无法联系应用服务器”这个错误。
回答by Gontran Bezerra
I removed the local directory hidden and resolved:
我删除了隐藏的本地目录并解决了:
$ cd ~
$ rm -r .pgadmin/
Note: macOS Sierra (10.12.6) and pgAdmin 4-1.6. Also you are going to loose configuration data like database list tree, et al.
注意:macOS Sierra (10.12.6) 和 pgAdmin 4-1.6。您还将丢失配置数据,例如数据库列表树等。
The Databases will remain intact since you are modifying/deleting PgAdmin related data not any of Postgresql itself.
数据库将保持不变,因为您正在修改/删除与 PgAdmin 相关的数据,而不是任何 Postgresql 本身。
回答by Guo Huang
I had the same issue, I fixed it by stopping the service in Postgres app, then start pgAdmin, and then start the Postgres service. I was able to connect it after that. Hope this help.
我遇到了同样的问题,我通过在 Postgres 应用程序中停止服务来修复它,然后启动 pgAdmin,然后启动 Postgres 服务。之后我就可以连接它了。希望这有帮助。
回答by MK-rou
I had same error, but in my case I use wrong port number for the database
我有同样的错误,但在我的情况下,我为数据库使用了错误的端口号
回答by Abed
On my system Safari is the problem as it was default browser.
在我的系统上,Safari 是问题,因为它是默认浏览器。
To fix, make Chrome your default browser and try relaunching pgadmin4
要修复,请将 Chrome 设为默认浏览器并尝试重新启动 pgadmin4
OR
或者
Manually fix by $ cat ~/.pgAdmin4.5704814747986328352.addr http://127.0.0.1:62631/?key=0ec25e6a-dfe2-483e-9814-b315ea87c3cf
手动修复 $ cat ~/.pgAdmin4.5704814747986328352.addr http://127.0.0.1:62631/?key=0ec25e6a-dfe2-483e-9814-b315ea87c3cf
Paste what youget in Chrome
粘贴您在 Chrome 中获得的内容