我已经在我的fedora机器上安装了postgresql数据库和pgadmin4。启动postgresql服务并尝试从pgadmin4连接到postgresql服务器后,我将收到以下错误
Unable to connect to server:
FATAL: Ident authentication failed for user "postgres".
我该怎么解决这个问题?
我尝试在pgAdmin中建立到PostgresSQL服务器的连接。我总是得到这样的信息:
could not receive data from server: Software caused connection abort (0x00002745/10053).
我读了几篇帖子,人们都有同样的问题,但他们没有帮助我。
因为我的版本有点老,所以我卸载了整个postgresql,并用EnterpriseDB (windows64上的PostgreSQL 9.6 )的安装程序安装了最新的版本。一切看起来都很好。但我无法再次从pgAdmin 4连接到服务器。我得到了相同的错误信息。
In the
我正在使用pgAdmin4并开发一个node.js应用程序。
计算机突然关机,我无法再连接到postgresql服务器。
当我试图连接时,我遇到的错误是:
psql: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and
accepting TCP/IP connections on port 5432?
could not con
enter code here我正在开发一个连接到PostgreSQL9.2实例的node.js应用程序。我只为SSL连接配置了数据库。这包括在ssl = on文件中设置postgresql.conf。
一切都很好,我可以从本地电脑和PgAdmin连接到数据库。它只接受SSL连接。
今天早上,git把我的一些本地工作推回了Openshift。但是,我系统地收到了以下错误消息:
Failed to execute: 'control restart' for
/var/lib/openshift/52e625a44382ec6c7b000042/postgresql
我检查了我的
因此,我试图在Visual代码上将远程调试从本地计算机设置为ec2实例。获取错误:
launch.json文件
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
使用COPY查询将文件写入目录:
Copy (SELECT * FROM animals) To '/var/lib/postgresql/data/backups/2020-01-01/animals.sql' With CSV DELIMITER ',';
但是,如果目录2020-01-01不存在,则会得到错误
无法打开用于写入的文件"/var/lib/postgresql/data/backups/2020-01-01/animals.sql“:没有此类文件或目录
PostgeSQL服务器运行在带有卷映射/mnt/backups:/var/
我刚接触过码头集装箱,但对Postgres并不是很陌生(我在过去做过一些探索)。
问题是,我正在尝试连接从以下Docker容器启动的Postgres服务器
问题是我无法使用PGAdmin4连接到服务器。我得到了以下错误:
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Add
我正在使用从visual studio 2010连接到postgresql数据库。下载包中有一个名为Npgsql的XML文件,该文件似乎包含一些我们通常在visual studio intellisense中看到的信息。现在,我想将此intellisense信息添加到IDE中,以便在编码时可用。
我能用这个XML文件做到这一点吗?
我正在尝试将R连接到postgreSQL数据库。他就是我一直在尝试的R:
require("RPostgreSQL")
pw<- {
"password"
}
# loads the PostgreSQL driver
drv <- dbDriver("PostgreSQL")
# creates a connection to the postgres database
# note that "con" will be used later in each connection to the databas
阅读Tableau Server I的文档无法确定以下内容是否有效:
I已经设置了Tableau Server 2020.4.0和PostgreSQL驱动程序,我添加了一个连接到内部(即非公共的),PostgreSQL DB通过Tableau服务器I可以通过登录到Tableau Server来访问PostgreSQL - fine
我还可以通过Tableau桌面连接到Tableau服务器,但是无法连接到PostgreSQL,因为它不能从运行Tableau桌面的客户端机器上直接访问。
有没有办法通过Tableau从Tableau访问连接到Tableau的非公共PostgreSQL数据库?
如何从远程计算机连接到Azure PostgreSQL数据库?
更新2.我可以使用sudo psql从WSL/Ubuntu连接到数据库,但不能使用普通的psql。所以这是个权限问题.
更新。我发现我可以使用PgAdmin4从远程计算机连接,但不能使用psql连接。因此,我想知道:我应该如何连接使用psql?
原始问题。--我可以使用psql从Azure内部的VM连接到它,因此我知道数据库已经启动并接受连接。但是,当我试图使用完全相同的psql命令从我的主机连接时,它失败了:
psql --user=UUU --host=HHH DB
psql: server closed the conne