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

猜你喜欢

转载自www.cnblogs.com/jonney-wang/p/9860243.html