我安装了Postgres9.6 ver和pgAdmin4一起安装.但是当我执行pgadmin时,返回消息"无法联系应用程序服务器".
我尝试从网上下载并安装pgAdmin4.但没有改变任何事情.
我无法得到任何东西虽然我搜索谷歌有关该消息.
我设置系统路径,Postgres在我的本地运行.但是pgadmin没有启动.
有人知道吗?谢谢.
更新:
我发现了这个 问题.
我认为这同样是我的问题,即使消息有点不同,也有3个好的投票.
所以我正在尝试这样做,但无法运行setup.py.
我安装了python.并pgAdmin\web\setup.py以cmd作为管理员运行.但失败的消息
来自flask导入Flask没有名为'flask'的模块
谢谢.
Ubuntu 16.04.3
我想安装pgAdmin:
我用python 2创建了一个virtualenv.
然后安装pgAdmin 4 v2.0:
pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v2.0/pip/pgadmin4-2.0-py2.py3-none-any.whl
是时候运行pgAdmin了:
(pgadmin4) michael@michael-desktop:~/PycharmProjects/venv$ python pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py
Traceback (most recent call last):
  File "pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py", line 55, in <module>
    exec(open(file_quote(setupfile), 'r').read())
  File "<string>", line 46, in <module>
  File "/home/michael/PycharmProjects/venv/pgadmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/setup/data_directory.py", line 23, in create_app_data_directory
    _create_directory_if_not_exists(os.path.dirname(config.SQLITE_PATH))
  File "/home/michael/PycharmProjects/venv/pgadmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/setup/data_directory.py", line 15, in _create_directory_if_not_exists
    os.mkdir(_path)
OSError: [Errno 13] Permission denied: '/var/lib/pgadmin'
你能帮我一把吗?
我正在尝试查询我连接到的远程数据库,但是我遇到了使用查询工具"连接"数据库的问题.查询工具打开,但"插件"图标保持红色,似乎没有连接到数据库(见下图).

我不确定这是否是描述它的最佳方式,但希望附加的图片是有道理的.
有没有理由发生这种情况?我已经把它放在一夜之间等等,以防它只是等待连接远程数据库,但它仍然没有连接.
提前致谢
我正在学习本教程:https://www.youtube.com/watch?v = Ho3DKKopC2E&list = PLDmvslp_VR0xlwr5lAx2PDsZLu7oIOhpX&index = 20
当我连接到db时,我想像turorial一样连接数据库:
但我失败了,因为我不知道怎么办:
有谁知道怎么做?
我读了Q/A"如何在postgreSQL pgAdmin中插入一行?" 从这里输入链接描述 ,但它是pgAdmin 3.
我刚刚用pgAdmin 4安装了postgreSQL 9.6.2,但是找不到pgAdmin 3中显示的选项,你可以点击这个选项有一个类似excel的窗口,你可以在不使用SQL语言的情况下在表中添加和更新数据(按照@KarelG).有没有人知道它是否仍然存在于带有pgAdmin 4的postgreSQL 9.6.2中?谢谢.
我是PostgreSQL的新手,我正在尝试创建一个架构文件,该文件将包含创建数据库和所需表所需的所有脚本。我以前对SQl服务器执行此操作的方法是检查数据库是否存在,然后运行必要的脚本。
PostgreSQL中的以下脚本引发错误,指出“无法从函数或多命令字符串执行CREATE DATABASE”
do $$
begin
If not exists (select 1 from pg_database where datname = 'TestDB')
Then
 CREATE DATABASE "TestDB";
end if;
end
$$
我通过导出数据库备份创建了一个postgres数据库转储文件,但其中包含,
Drop Database "TestDB"
Create Database "TestDB"
这意味着每次我运行架构文件时,都会删除并重新创建数据库,如果数据库中存在数据,那将是一个问题。
如何检查数据库是否存在于postgreSQL中,而不必每次运行文件时都删除数据库并重新创建数据库?
提前致谢
I get the pgadmin 4 server could not be contacted. This is the first time I installed on my computer. I tried the run as admin solution, remove the app/roaming files, restart the posgresql services, tried to modify the config.py, config_distro.py. All of it did not help. Please help thank you.
Here is the error
Python Path: "C:\Program Files\PostgreSQL\12\pgAdmin 4\python\python.exe" Runtime Config File: "C:\Users\lco73\AppData\Roaming\pgadmin\runtime_config.json" pgAdmin Config File: "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\config.py" Webapp Path: "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgAdmin4.py" pgAdmin Command: …
伙计们!我正在尝试在 pdAdmin 4 中创建本地服务器,但每次尝试创建时都会收到此错误:
[pgAdmin 错误]

如果“veterano”是我的用户名......
我尝试运行此操作(但不起作用)
检查 Postgres 服务是否安装正确:
$ sudo systemctl is-active postgresql
终端背面:
active
$ sudo systemctl is-enabled postgresql
终端背面:
enabled
$ sudo systemctl status postgresql
终端背面:
active (exited)
$ sudo pg_isready
终端背面:
/var/run/postgresql:5433 - accepting connections
我对 pg_hba.conf 的配置:
local   all             postgres                                peer
# TYPE  DATABASE        USER            ADDRESS                 METHOD
# "local" is for Unix domain socket connections only
local   all             all                                     peer
# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
# IPv6 local connections: …我已按照本教程安装pgadmin4-web:pgAdmin 4 (APT)。
\n当我运行以下命令时
\nsudo /usr/pgadmin4/bin/setup-web.sh \n我收到以下错误:
\n\n\n在基于 Debian 的平台上以 Web 模式设置 pgAdmin 4\xe2\x80\xa6 创建\n配置数据库\xe2\x80\xa6 /usr/pgadmin4/bin/setup-web.sh: 第 75 行:\n/usr/pgadmin4 /venv/bin/python3:没有这样的文件或目录设置服务器模式时出错。请检查上面的输出。
\n
任何帮助将非常感谢。
\n笔记:
\n运行以下命令后(tutorial\xc2\xb4s 步骤二)
\nsudo sh -c \'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update\'\n我必须将内部文件 /etc/apt/sources.list.d/pgadmin4.list 从 jammy 更改为 bionic
\nfrom\ndeb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 main\nto\ndeb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 main\n今天早上我将本地 Postgresql 测试服务器升级到 PostgreSQL15。打开 pgAdmin 时出现警告,指出某些功能可能无法正常工作,因为我的服务器添加了 pgAdmin 版本 9。
完成步骤:
现在的情况:
尽管如此,pgAdmin 并未显示旧服务器版本 (v9) 的表列表。我无法升级此服务器,但必须像以前一样在 PgAdmin 中使用它。但我可以毫无问题地运行所有查询。
它列出了所有模式、视图和序列。但是当单击表格时,它会继续加载并且从不提供表格列表。
顺便说一下,我使用的是Windows 10 64位操作系统。
五天后,我将 Postgresql 降级到 V12,现在收到如下错误:
ERROR: column "wait_event_type" does not exist LINE 10: wait_event_type || ': ' || wait_event AS wait_event, ^ 
enter code here
有人经历过这样的问题吗?需要一些帮助。提前致谢。