Rails + Postgres drop error: database is being accessed by other users

前端 未结 16 2149
时光取名叫无心
时光取名叫无心 2020-12-04 06:26

I have a rails application running over Postgres.

I have two servers: one for testing and the other for production.

Very often I need to clone the production

16条回答
  •  臣服心动
    2020-12-04 07:15

    Rails is likely connecting to the database to drop it but when you log in via phppgadmin it is logging in via the template1 or postgres database, thus you are not affected by it.

提交回复
热议问题