今天在调试一个脚本的时候遇到这个错误:
dropdb: could not connect to database postgres: could not connect to server:
这个脚本调用了postgresql的dropdb命令。
找了下资料似乎是dropdb时候找的库不对导致的。 由于这个脚本以前是对本机postgreSQL操作的,这次是对remote的postgreSQL操作的,所以测试了一下差异:
./dropdb -U postgres mydbase 默认对本机数据库操作
./dropdb -U postgres dsvdbase -h 10.**.**.** 加上了IP地址,对此IP的数据库操作
所以由于脚本所在服务器没有装postgreSQL,出了错, 给这个脚本填加-h解决
相关推荐
ArcEngine开发连接PostgresSQL空间库Cannot connect to database because the database client software failed to
wasmer-postgres::computer_disk::spider_web:Postgres库用于运行WebAssembly二进制文件
nsq_to_postgres 从 NSQ 拉取消息并写入 Postgres JSONB 列。 例子 跑步: $ nsq_to_postgres --config config.yml 询问: select log - > ' program ' as program, log - > ' level ' as level, count ( * ...
氧化剂::package:基于tokio-postgres和精炼厂的Rust ORM
塞德·波斯特格雷斯 轻松将或行反序列化为任意结构。 (仅支持反序列化)。例子tokio-postgres (异步)...(), Box < dyn>> { let (client, connection) = connect ( "postgres://postgres@localhost:5432" , NoTls). a
postgres-kafka-demo:关于如何将表从Postgres到KafkaKSQL流回Postgres的完全可重复的分步演示
sslmode=disable up运行网络服务器./bin/server测试开始postgres docker-compose up -Vd postgres运行SQL迁移migrate -source file://migrations -database postgres://postgres:password@127.0.0.1/operations \?...
PAF:PostgreSQL自动故障转移:基于Pacemaker和Corosync的Postgres的高可用性
没有运行时相关性的Postgres错误的TypeScript枚举。 还与纯JavaScript兼容。 快速开始 安装 # Using npm npm install --save pg-error-enum # Using yarn yarn add pg-error-enum 用法 TypeScript或ES6模块 import ...
event_bus_postgres:event event_bus的Postgres事件存储
博士后 dokku的官方postgres插件。 当前默认安装 。...postgres:backup <service> <bucket> [--use-iam] # creates a backup of the postgres service to an existing s3 bucket postgres:backup-a
Login-page:登录页面以及链接到postgres的数据库
猛mm象:TypeType的类型安全Postgres查询构建器 :open_book: 正在进行的文档站点可从。 npm i @ff00ff/mammoth Mammoth是类型安全的查询构建器。 它仅支持我们认为是功能的Postgres。 它的语法尽可能接近SQL,因此...
节点的pgx orm postgres(npm pg) pgx使PostgreSQL看起来像NoSQL-但仅在您需要时才使用。 安装:: npm install pgx var pg = require('pg');var pgx = require('pgx')(pg, config.connection, schemas);config....
有关如何定义DatabaseServer的yaml示例: apiVersion : database.stacc.com/v1alpha1kind : DatabaseServermetadata : name : postgres-serverspec : type : postgresql secretName : postgres-server-secret ...
播种Postgres数据库教程前言该存储库具有用于播种Postgres数据库的节点脚本( )和用于编写脚本的教程指南( )。 要在本地运行脚本,请确保在计算机上安装了和 。 此仓库使用以下版本: 节点:14.15.1 邮编:13.1 ...
trello_task_manager:ReactJs + Spring Boot + Postgres上的任务管理器
用于Postgres-Backup的BOSH版本 Monit脚本将备份作业添加到cron。 备份存储在/var/vcap/store/postgres/pg_dumps 用法 对于每个BOSH部署,添加以下内容: releases : - name : postgres-backup version : latest ...
PostgreSQL服务器导出器 用于PostgreSQL服务器指标的Prometheus导出器。... -e DATA_SOURCE_NAME="postgresql://postgres:password@localhost:5432/postgres?sslmode=disable" \ quay.io/prometheuscommunity/post
具有Web管理界面的Postgres DB 该docker compose文件使用这些容器 Postgres v13.1作为PostgreSQL数据库 PgAdmin4 v4.28作为PostgreSQL数据库的基于Web的管理工具 Caddy v2.2.1作为反向代理服务器 环境变量 要进行...