删除其他用户正在访问的数据库? [英] Drop a database being accessed by another users?
本文介绍了删除其他用户正在访问的数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试从PgAdmin 3删除数据库,并收到此错误消息:
I'm trying to drop a database from PgAdmin 3 and I get this error message:
ERROR: can't delete current database
SQL state: 55006
如何强制删除/ ,这个数据库?
how can I force the delete/fix this error, of this database?
推荐答案
在PgAdmin中快速修复:只是创建另一个空数据库。选择它。删除第一个。
Quick fix in PgAdmin: just create another empty database. Select it. Delete the first one. Voila.
您也可以在不选择特定数据库的情况下连接到命令行,并删除您的数据库。
You can also connect to the command line without selecting a specific database, and drop your database.
这里的问题不是其他用户连接到数据库,而是您。
The problem here is not that other users are connected to the database, but that you are.
这篇关于删除其他用户正在访问的数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文