我剛剛備份Postgresql數據庫,我想用Postgresql studio查看它?我在互聯網上搜索,但沒有找到教程。請給我一些關鍵字或鏈接,以便我可以閱讀更多關於如何查看它。 謝謝!如何在Postgresql Studio中查看備份Postgresql數據庫
-1
A
回答
0
我最近開始使用PostgreSQL,但與PostgreSQL的工作室,所以我的答案會更加的建議,希望能夠幫助您開始:
在我看來,你將需要重新創建和服務數據庫,然後通過PostgreSQL Studio連接到它。如果我是從頭做到這一點,從比如說,Fedora和使用pgadmin,而不是PostgreSQL的工作室,這些都是基本的步驟,我會採取(假設你有一個「適當的」 PostgreSQL的備份文件):
# 1. Install PostgreSQL:
dnf install postgresql, postgresql-contrib, postgresql-server
# 2. Init db and data directory
sudo postgresql-setup initdb
# 3. Start PostgreSQL
sudo systemctl start postgresql
# 4. Create yourself as a superuser
createuser <you> -s
# 5. Launch psql
psql
# 6. Restore database (you might need to createdb first)
dbname < postgres_backup_file;
# 7. Exit
\q
之後,啓動PostgreSQL Studio並連接到數據庫。 查看本頁底部的連接說明:http://www.postgresqlstudio.org/support/documentation/supportdocumentationinstallation-guide/
上面的步驟是最小的,並且有很多地方可能會變得粘稠和令人沮喪。我最好的資源,除了谷歌,解決問題,是將源代碼本身: [https://www.postgresql.org/docs/9.5/static/index.html][2]
另外,如果你不已經有PostgreSQL的工作室運轉,那是另一個潛在的問題區域,我會建議使用pgAdmin的本地或psql本身。 Psql將允許您使用常規SQL查詢來探索數據庫,而無需安裝任何guis。
相關問題
- 1. Postgresql數據庫備份
- 2. 如何從Oracle數據庫備份文件生成PostgreSql查詢
- 3. 如何在psql中備份postgresql數據庫?
- 4. PostgreSQL:查看數據庫連接權限
- 5. 如何使用Java進行PostgreSQL數據庫備份
- 6. 在Ubuntu中自動備份PostgreSQL數據庫
- 7. 如何在Windows 7上查看PostgreSQL數據庫?
- 8. PostgreSQL數據庫設計的備份 - 無數據
- 9. 備份來自postgreSQL數據庫(Django站點)的所有數據
- 10. 在PostgreSQL數據庫
- 11. Selective PostgreSQL數據庫查詢
- 12. 如何從PostgreSQL數據庫
- 13. 將數據庫(postgresql)中的更改更新到遠程備份數據庫
- 14. PostgreSQL數據庫
- 15. 在postgresql中查看優化
- 16. 在PostgreSQL中查看錯誤
- 17. Postgresql PITR備份:處理多個數據庫的最佳實踐?
- 18. PHP備份整個PostgreSQL數據庫,然後恢復表
- 19. 備份覆蓋率PostgreSQL數據庫到文件
- 20. PostgreSQL數據庫備份是空的 - 怎麼了?
- 21. 從磁盤獲取數據庫postgresql備份
- 22. 從我的應用程序備份postgresql數據庫
- 23. 有限的備份權postgresql
- 24. postgresql備份文件權限
- 25. PostgreSql命令查看錶格數據
- 26. 的PostgreSQL數據庫
- 27. ,讓PostgreSQL數據庫
- 28. PostgreSQL查看錯誤
- 29. 如何在Visual Studio 2008中查看數據庫中的數據
- 30. PostgreSQL在內存數據庫