在Kali linux上安装了GVM之后,按照说明运行gvm-setup命令来设置OpenVAS:https://linuxhint.com/install-openvas-kali-linux/ 但是,出现了以下错误: ERROR: The default postgresql version is not 13 required by libgvmd
Error: Use pg_upgradecluster to update your postgres cluster 因此,我通过以下命令检查了安装的PostgreSQL版本: $ su postgres
$ psql --versio
我最近在Windows上安装了,并希望从它访问远程Linux服务器上的数据库。
我的Linux用户名是my_username,我还有一个系统用户psql_user。我还有两个现有的PostgreSQL数据库,其名称与它们各自的用户相同。通常,只有psql_user被使用,并且是由侦听Unix套接字并作为用户psql_user运行的php池访问的,因此将/var/lib/pgsql/12/data/pg_hba.conf配置为:
# TYPE DATABASE USER ADDRESS METHOD
local all
我已经安装了两个版本的Postgresql,8.4和9.1。当我尝试运行psql时,它只获取以前的psql版本。例如,当我运行以下行连接到数据库时,ax_data:
C:\Program Files (x86)\PostgreSQL\9.1\bin>psql ax_data
Password:
psql (9.1.2, server 8.4.8)
WARNING: psql version 9.1, server version 8.4.
Some psql features might not work.
WARNING: Console code page (437
我正在努力使psql格式良好,并遵循docs 。现在,每当我对包含大量列的表进行查询时,无论我的屏幕有多大,每行都会溢出到下一行,产生一整屏不可读的垃圾。
文档(链接在上面)说,有一种方法可以很好地对齐列,以获得更易读的输出。
通常,要启动psql,我只需键入:
psql
然后按回车。现在我试着:
psql \pset格式对齐
并得到一个错误:
could not change directory to "/root"
psql: warning: extra command-line argument "aligned" ingored
psql: F
我已经安装了PostgreSQL 13在Windows 10上使用EDB安装程序,它似乎工作良好。我可以在包含的psql应用程序中轻松地与SQL Shell连接。但是,我无法从powershell连接:
~> psql -U postgres -h localhost
psql: error: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
我已经在OSX上安装了postgresql。当我运行psql时,我得到
$ psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5433"?
但是,从/etc/services
postgresql 5432/udp # PostgreSQL Database
postgresql
我目前正在我的视窗电脑上设置postreSQL服务器。
我想创建我的第一个数据库,但由于密码验证失败而无法创建createdb函数。因此,我在这个网站上发现了以下问题:
但是,我想我忘记了:结尾的;
ALTER USER postgres with encrypted password 'xxxxxxx';
现在,当我尝试启动psql时,出现以下错误:
Server [localhost]:
Database [postgres]:
Port [5432]:
Username [postgres]:
Active code page: 1252
psql: could not
我使用这种方法向linux终端发送命令。
public static String execute(String command) {
StringBuilder sb = new StringBuilder();
String[] commands = new String[]{"/bin/sh", "-c", command};
try {
Process proc = new ProcessBuilder(commands).start();
BufferedReader stdInput = new
我在WSL (Windows Subsystem for Linux)上的Ubuntu 18.04上运行Postgres 12数据库。
我可以使用sudo -u postgres psql毫无问题地连接到数据库,并且可以查看和创建新的数据库和用户。
我用CREATE USER myusername WITH PASSWORD 'mypassword';创建了一个新用户,psql返回CREATE ROLE。
但是,当我尝试以此用户身份使用我在psql -h localhost -U myusername中设置的密码登录时,得到的是psql: error: could not co
目前,我只是试图使heroku pg:psql命令正常工作,但我的最终目的是使用pg:push命令将计算机上的数据库(localhost)复制到heroku数据库。
现在,当我尝试访问我在heroku上创建的数据库时,heroku pg:psql命令返回:
psql: could not connect to server: No route to host
Is the server running on host "ec*-**-***-***-**.eu-west-1.compute.amazonaws.com" (**.***.***.**) and accep
我在试着联系
psql -h ec2-23-23-227-54.compute-1.amazonaws.com -U igcmskkpsx igcmskkpsx
但它回答说:
psql: no se pudo conectar con el servidor: Connection timed out (0x0000274C/10060)
¿Está el servidor en ejecución en el servidor «ec2-23-23-227-54.compute-1.amazonaws.com» y aceptando
conexiones T
我已经在docker上创建了数据库:docker run --name database -e POSTGRES_PASSWORD=password -d -p 5436:5436 postgres在下面创建了一些数据库:
createdb database
也创造了超级用户。现在我正在尝试从本地主机连接:
psql -h localhost -p 5436 -U postgres
在此之后,我得到以下错误:
psql: The server closed the connection unexpectedly
This probably means that the ser