Kam*_*i81 5 postgresql rds amazon-web-services
我想创建生产数据库的副本以进行登台,并从生产快照创建登台数据库实例。但是,此新实例仍具有数据库名称:“ production-database”。我能够将PSQl上的数据库重命名为“ staging-databse”,但这未反映在AWS控制台中。恐怕将来的开发人员会非常困惑,并且想知道如何在AWS上重命名“数据库名称”?
nak*_*der 37
不是很明显 - 创建新数据库时,展开“附加配置”卡以创建初始数据库名称
小智 30
I created a new free tier instance for small scale testing and this is the DB name I see in my configuration:
I looked everywhere, but could not figure out what my database name is or how to create an initial database. Turns out the database name is postgres. It's also worth noting that I kept the default username, so in this case the username and database name are the same. If you changed the default username and postgres isn't working, maybe try using your username as your database name.
不要使用默认数据库选项。它所做的只是默认情况下创建一个自定义名称的数据库。它可能有用途,但我从来没有使用过,因为它似乎没有任何意义,只能指定默认情况下(首次创建实例时)创建的数据库。
数据库名称
如果要为默认数据库指定数据库名称,请输入数据库名称,最多63个字母数字字符。如果不提供名称,则会创建默认的“ postgres”数据库。
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreatePostgreSQLInstance.html
我认为这是为了给RDS新用户带来方便,但是对我来说,这似乎是不必要的。它对实例的正在进行的操作没有明显的影响,该实例当然可以具有多个独立的数据库。
这显然无法随后更改,因此比什么都更令人烦恼。我总是空白。
| 归档时间: |
|
| 查看次数: |
6538 次 |
| 最近记录: |