在 Heroku 上销毁 Postgres 数据库 [英] Destroying a Postgres DB on Heroku

查看:23
本文介绍了在 Heroku 上销毁 Postgres 数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想销毁数据库,但我不确定该命令是什么.有人知道怎么做吗?

I want to destroy the database but I'm not sure what the command would be. Does anyone know how to do this?

推荐答案

您不应该使用 postgres 命令来完全删除您的数据库,因为您将没有创建新数据库的权限.相反,您应该使用 heroku 命令来清除您的数据库:

You shouldn't use a postgres command to fully delete your database, as you will not have permissions to create a new one. Instead you should use the heroku command to clear out your database:

heroku pg:reset DATABASE_URL

这篇关于在 Heroku 上销毁 Postgres 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆