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

查看:170
本文介绍了销毁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天全站免登陆