Postgres drop database error: pq: cannot drop the currently open database

后端 未结 4 978
别那么骄傲
别那么骄傲 2021-02-05 01:21

I\'m trying to drop the database I\'m currently connected to like so, but I\'m getting this error:

pq: cannot drop the currently open database

4条回答
  •  伪装坚强ぢ
    2021-02-05 02:07

    If you encounter this problem in IntelliJ, change the schema with the following dropdown to postgres.

    After that, I was able to drop a db.

提交回复
热议问题