在安装postgreSQL软件后,我不小心掉了原来的postgres数据库。Postgres用户仍然存在,\du超级用户。如何恢复或重新创建原始postgres数据库?
发布于 2017-08-22 16:11:36
https://www.postgresql.org/docs/current/static/sql-createdatabase.html
快跑吧
create database postgres;它将使用默认模板(即"template1")创建数据库。如果您没有修改它-它将与以前的"postgres“数据库相同
发布于 2017-08-22 16:11:49
只有当您有该数据库以前的一些备份时,才能恢复它,方法是还原该备份,然后应用WAL文件,直到发出drop database语句时为止。
没有其他方法可以恢复已删除的数据库。
https://stackoverflow.com/questions/45812178
复制相似问题