2
如何在PostgreSQL中复制数据库?
我需要将现有数据库(包括其架构和结构)复制到另一个新数据库。我在shell命令环境而不是pgadmin中需要它。请帮助我。 nohup pg_dump exampledb > example-01.sql createdb -O postgres exampledbclone_01 我的用户是“ postgres” nohup psql exampledbclone_01 < example-01.sql $ pg_dump mydb > db.sql $ psql -d newdb -f db.sql
17
postgresql