postgresql - pg_dump : how to install on Amazon Linux for PostgreSQL 9. 5.2?

标签 postgresql amazon-ec2 rds

我曾经安装和做:

$ sudo yum install -y postgresql94-server postgresql94
$ pg_dump -h name-of-db.us-east-1.rds.amazonaws.com -U user dbName > dump

在 RDS 升级到 9.5.2 之后,我得到了这个:

pg_dump: server version: 9.5.2; pg_dump version: 9.4.5
pg_dump: aborting because of server version mismatch

我找不到适合 Amazon Linux 的软件包

这对我没有帮助:http://tecadmin.net/install-postgresql-9-5-on-centos/

可以吗?

最佳答案

好的,找到了。

(1) 安装仓库:

$ sudo rpm -Uvh https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6-x86_64/pgdg-ami201503-95-9.5-3.noarch.rpm

- 更新:9.5.2-> 9.5.3 找到 repo here .

(2) 然后安装包:

$ sudo yum install postgresql95

现在您可以将 RDS 数据库转储到附近的 ec2 实例!

关于postgresql - pg_dump : how to install on Amazon Linux for PostgreSQL 9. 5.2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36881350/

相关文章:

postgresql - 这些索引对于 customer_id 做同样的事情吗?

R 多核 mcfork() : Unable to fork: Cannot allocate memory

mysql 在 t2.micro Amazon Linux 实例上意外停止

postgresql - 是否有任何工具可以将 RDS PostgreSQL 从 AWS 迁移到 Google Cloud SQL?

javascript - Sequelize : Query same join table with different conditions

sql - 在 Django 中执行 PostgreSQL LEFT OUTER JOINS 和 CASE

sql - 使用 SELECT 语句查询自定义 postgresql 参数

node.js - 亚马逊 EC2 Ubuntu 实例 : Where should I upload the files to access them from the browser?

mysql - MySQL innodb 中的一个表上的系统锁/死锁

java - MySQL 重启后 Hibernate 应用程序无法连接到 MySQL