Ms7 Search
Google 搜尋 翻譯
calendar
« 四月 2025 »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
近期文章
文章分類
網站連結
Syndicate

« | »

PostgreSql 的備份還原

2013-03-02 @ 10:16 in 行政系統偷吃步

用 pgAdmin III 的備份還原一直無法成功,我是從另一台的備份檔拿到另一台還原,可是一直失敗,真不知那台備份是如何做的,有空應該研究一下

在網上找到一個方法,雖然是最基本的,但是可以成功,方法如下:

備份:
pg_dump -U[使用者] -c [DB名稱] > xxx.sql  

還原:
1. dropdb -U[使用者] [DB];    //刪除舊資料庫
2. createdb -U[使用者] [DB]; //建資料庫
3 .psql -U[使用者] [DB] < xxx.sql    //匯入資料

這樣就成功了,雖然是最基本的 sql 備分,可是竟然是最好用的

迴響

PostgreSql 的備份還原 | 豬窩

Hurrah, that's what I was exploring for, what a data!
present here at this blog, thanks admin of this website.

作者 air tickets @ 11:46, 2020-07-31

PostgreSql 的備份還原 | 豬窩

Really when someone doesn't know after that its up to other people that they will assist, so here it occurs.

作者 website hosting services @ 17:33, 2020-08-06

PostgreSql 的備份還原 | 豬窩

For the true supporter infortmation of latestt football news is an exciting matter.
Positive figures show the amount you wwould win for geting
a $100 spot. The bers are broadly considered inside bets and outside bets.

作者 live22 play @ 17:46, 2020-08-06

PostgreSql 的備份還原 | 豬窩

This blog was... how do I say it? Relevant!! Finally I've found
something which helped me. Many thanks!

作者 web hosting services @ 02:10, 2020-08-07

PostgreSql 的備份還原 | 豬窩

Its like you read my mind! You appear to know so much about this, like you wrote the book in it or something.
I think that you could do with some pics to drive the message home a little bit, but other than that, this is magnificent blog.
An excellent read. I'll certainly be back.

作者 web host @ 14:09, 2020-08-07
發表迴響
 authimage