如何重命名Heroku中的数据库? [英] How to rename database in Heroku?

查看:115
本文介绍了如何重命名Heroku中的数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Heroku中创建了一个新的数据库,显示在我的仪表板上;当我进入设置,它不允许我重命名,说内部服务器错误。我可以做些什么来重命名我的数据库?

I've created a new database in Heroku, showing in my dashboard; when I go to settings, it does not allow me to rename, stating 'Internal Server Error'. What can I do to rename my database?

推荐答案

看来,重命名Heroku DB的方法自从这是最后一次更新; 此回复中提供的答案已不再有效。

It looks like the method for renaming a Heroku DB has changed since this was last updated; the answer given in this reply is no longer valid.

我已经和Heroku的支持人员进行了对话,目前的方式来重命名Heroku数据库是使用 heroku addons:rename 命令(你可以查看一些简单的CLI帮助,命令 heroku help addons:rename 。)

I've spoken with Heroku support, and the current way to rename a Heroku DB is using the heroku addons:rename command (you can look up some brief CLI help on it with the command heroku help addons:rename.)

例如:如果您的数据库名为 postgresql-loudly-9983 ,并附加到应用程序 bumping-softly-6892 ,您想将其重命名为 stats-db ,您的命令将如下:

For example: if your DB is named postgresql-loudly-9983 and is attached to the app bumping-softly-6892, and you'd like to rename it to stats-db, your command would be the following:

heroku addons:rename postgresql-loudly- 9983 stats-db -a bumping-softly-6892

这篇关于如何重命名Heroku中的数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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