Postgresql - unable to drop database because of some auto connections to DB

前端 未结 17 1815
一向
一向 2020-12-12 08:18

Whenever I try to drop database I get:

ERROR:  database \"pilot\" is being accessed by other users
DETAIL:  There is 1 other session using the database.
         


        
17条回答
  •  鱼传尺愫
    2020-12-12 08:58

    In macOS try to restart postgresql database through the console using the command:

    brew services restart postgresql
    

提交回复
热议问题