2012年5月29日 星期二

postgre回復資料資料

備份的時候,是直接用pgadmin來做的
如果要用指令來備份,則用pg_dump來做備份

直接在shell底下

 psql -U postgres -h localhost test2 < /dump.sql
會問你密碼 就OK了

$conf['extra_login_security'] = false;

如果備份出來的是DUMP檔或是BAK
好像就是用pg_restore來做

沒有留言:

張貼留言