postgresql数据库备份及还原

运行环境:

       环境变量加入postgresql的bin路径,如D:\software\postgresql\9.5\bin;同时创建对应名称的数据库~~

备份命令:pg_dump -h localhost  -U openerp erp   >   /opt/database/文件名

还原命令:psql  -h localhost -U openerp  -d  erp  <  /opt/database/文件名



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章