You need to enable JavaScript to run this app. 如何在Amazon Aurora PostgreSQL Serverless集群中创建初始数据库
优惠活动
大模型
产品
解决方案
定价
更多

如何在Amazon Aurora PostgreSQL Serverless集群中创建初始数据库

你需要在创建集群的命令中添加--database-name参数,通过该参数指定你需要的初始数据库名称即可实现对应配置效果。

示例修改后的完整命令

假设你要创建的初始数据库名为appdb,修改后的命令如下:

aws rds create-db-cluster --db-cluster-identifier psql-test --engine aurora-postgresql --engine-version 10.12 --engine-mode serverless --scaling-configuration MinCapacity=2,MaxCapacity=4,SecondsUntilAutoPause=1000,AutoPause=true --enable-http-endpoint --master-username postgres --master-user-password password --database-name appdb

补充说明

如果不添加该参数,Aurora PostgreSQL集群初始化后默认仅存在系统自带的postgres数据库,你需要登录该库后手动创建业务用数据库。


内容的提问来源于stack exchange,提问作者jaskowitchious

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.21 09:24:03