刪除 PostgreSQL 資料庫文件

刪除 PostgreSQL 資料庫文件

我前段時間卸載了 PostgreSQL,但現在我再次需要它,並安裝了它。

跑步時rcpostgresql我得到以下資訊:

/usr/sbin/rcpostgresql

Your database files were created by PostgreSQL version 9.4. Could not find executables for this version. Please install the PostgreSQL server package for version 9.4.

我已經刪除了創建資料庫的文件(使用 initdb -D),但我仍然無法啟動它。

有小費嗎?

答案1

這其實很簡單。我以前安裝過 PostgreSQL-9.4,但不是從儲存庫安裝的,我不記得了。安裝相同版本有幫助。

好的但是如何?我從網站下載了 linux 二進位安裝程式。它有一個圖形介面,而且實際上非常簡單。這解決了問題。

相關內容