iT邦幫忙

0

postgresql降級問題

  • 分享至 

  • xImage

請教大家
在ubuntu中 如果目前是使用postgresql9.4版,要如何保留原本的資料來降級到9.2或9.3版呢
謝謝

資料庫用資料庫的工具做備份,然後還原,比較安全.
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

2
jerry00218
iT邦好手 10 級 ‧ 2015-11-12 22:29:36
最佳解答

用 PostgreSQL 本身的 Dump 方法進行備份,重新安裝成舊版本後再使用 Restore 還原應該是不錯的選擇
http://www.postgresql.org/docs/9.4/static/backup-dump.html

看更多先前的回應...收起先前的回應...
ektrontek iT邦研究生 1 級 ‧ 2015-11-15 09:10:57 檢舉

感謝
請教在原本的ubuntu中要如何移除原本的postgresql及安裝9.3版的postgresql呢?

ektrontek iT邦研究生 1 級 ‧ 2015-11-15 09:42:18 檢舉

有找到解決方式:http://askubuntu.com/questions/32730/how-to-remove-postgres-from-my-installation

想請教為什麼使用下列語法,都會出現沒有權限的訊息呢?感謝

jerry00218 iT邦好手 10 級 ‧ 2015-11-16 00:55:43 檢舉

因為你目的地的path處於root的家目錄,而你切換到postgres的使用者即無法將檔案寫入到該目錄,修改目的地位址就可以了

<pre class="c" name="code">pg_dump -Fc confluence > /tmp/confluence.backup
ektrontek iT邦研究生 1 級 ‧ 2015-11-16 22:56:30 檢舉

有遇過下列的情況嗎:could not change directory to "/root": Permission denied
(使用上面的方式)
煩請前輩指點,謝謝

ektrontek iT邦研究生 1 級 ‧ 2015-11-16 23:15:26 檢舉

感謝
已經 OK
(su - postgres)

ektrontek iT邦研究生 1 級 ‧ 2015-11-17 23:08:04 檢舉

請教前輩
有沒有POSTGresql conf檔的設定方式可參考呢?謝謝

jerry00218 iT邦好手 10 級 ‧ 2015-11-25 20:48:43 檢舉

不好意思沒有conf檔可供參考…因為我也蠻少用PostgreSql的,用 MariaDB 比較多…

WilliamHuang
iT邦研究生 1 級 ‧ 2015-11-12 09:10:37
【**此則訊息已被站方移除**】

我要發表回答

立即登入回答