postgresql 备份与恢复
备份
C:\PostgreSQL\11\bin>pg_dump -h localhost -p 5432 -U postgres Mes > d:/1.bak
恢复
C:\PostgreSQL\11\bin>psql -h localhost -p 5433 -U postgres -d Mes < d:/1.bak
posted on 2018-10-27 09:53 jonney_wang 阅读(150) 评论(0) 编辑 收藏 举报
备份
C:\PostgreSQL\11\bin>pg_dump -h localhost -p 5432 -U postgres Mes > d:/1.bak
恢复
C:\PostgreSQL\11\bin>psql -h localhost -p 5433 -U postgres -d Mes < d:/1.bak
posted on 2018-10-27 09:53 jonney_wang 阅读(150) 评论(0) 编辑 收藏 举报