[英]OpenShift PostgreSQL Database Restore
我有一個使用PostgreSQL數據庫的OpenShift應用程序。
我想用“實時”數據庫中的數據恢復此數據庫。
在本地運行時,我只是刪除數據庫。 然后我創建數據庫,然后運行還原。
但是,當我嘗試在OpenShift上刪除數據庫時,它說:
dropdb: database removal failed: ERROR: database "test" is being accessed by other users
所以我停止了OpenShift應用程序然后重試
現在它說:
pg_restore: [archiver (db)] connection to database "test" failed: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/lib/openshift/123456ef0c1e123456789b/postgresql/socket//.s.PGSQL.5432"?
所以我有一個抓住22的情況。
在OpenShift上恢復PostgreSQL數據庫的正確方法是什么?
讓Postgresql運行但停止正在訪問數據庫的應用程序。 就這么簡單......
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.