[英]how to restore database 'postgres' from postgresql
I am using local postgresql and pgadmin 4. I dropped database 'postgres' and now pgadmin won't open.我正在使用本地 postgresql 和 pgadmin 4。我删除了数据库“postgres”,现在 pgadmin 无法打开。 How can I restore 'postgres' or fix this issue?
我怎样才能恢复“postgres”或解决这个问题?
You have to change the definition of the "server" in pgAdmin and set the "maintenance database" to something else than postgres
, for example template1
.您必须更改 pgAdmin 中“服务器”的定义,并将“维护数据库”设置为
postgres
以外的其他内容,例如template1
。
Then you will be able to connect, and you can create the database postgres
again.然后你就可以连接了,你可以再次创建数据库
postgres
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.