How to change/reset password for database in openshift

时间:2015-10-06 08:25:57

标签: postgresql configuration openshift

When adding a database (postgresql) to my application in openshift the username and password is generated automatically. Is it possible to regenerate this password or to set it to a username/password of my choice?

1 个答案:

答案 0 :(得分:0)

OpenShift建议您不要更改为数据库访问设置的默认密码。更改它们可能会导致需要在应用程序/数据库上不时进行维护的问题。此外,更改密码时不会更新环境变量(我不确定您是否可以覆盖它们并手动设置它们),您必须在代码中使用硬编码值。取决于您是否更改它们取决于您,但不建议这样做。

相关问题