有关 Amazon RDS、S3 存储和默认 RDS 表的基本问题

发布于 2024-08-20 08:12:18 字数 213 浏览 7 评论 0原文

我刚刚在 Amazon RDS 服务上创建了我的第一个数据库实例。我想知道...

1) 有没有办法让亚马逊自动备份我的数据,即使实例被删除,数据也仍然存在?

2)是否可以在多个实例之间共享表?

3)当我第一次连接到实例时,我发现有三个数据库:我专门创建的、innob和mysql。我应该继续使用我创建的那个还是其他之一?有成本影响吗?

谢谢。

I just created my first database instance on the Amazon RDS service. I was wondering...

1) Is there a way to have Amazon automatically back up my data in a way that it persists even if the instance is deleted?

2) Is it possible to share tables across multiple instances?

3) When I first connected to the instance, I found there were three databases: the one I specifically created, innob, and mysql. Should I continue using the one I created or one of the others? Are there cost implications?

THANK YOU.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦境 2024-08-27 08:12:18

1) 有没有办法拥有亚马逊
以某种方式自动备份我的数据
即使实例它仍然存在
被删除了吗?

是的,亚马逊可以自动备份您的数据

Amazon RDS 可以自动备份
您的所有数据库实例。您可以设置
创建时的备份参数
一个数据库实例。但是,如果你不这样做
设置备份保留期限,
Amazon RDS 设置默认期限
你。您可以修改备份
随时参数。

请参阅此处

此外,还有数据库快照是用户启动的数据库实例备份。数据库快照一直保留到被用户删除为止。请参阅此处

2)是否可以在多个实例之间共享表?

是的,实例必须位于同一个安全组中。

3) 当我第一次连接到
例如,我发现有三个
数据库:我专门的数据库
创建、innob 和 mysql。

mysql 运行需要 innodb 和 mysql 表。您应该使用您创建的那个。

1) Is there a way to have Amazon
automatically back up my data in a way
that it persists even if the instance
is deleted?

Yes, Amazon can automatically backup your data

Amazon RDS can automatically back up
all of your DB Instances. You can set
the backup parameters when you create
a DB Instance. However, if you don't
set the backup retention period,
Amazon RDS sets a default period for
you. You can modify the backup
parameters whenever you want.

See here

Also, there are DB snapshots which are are user-initiated backups of a DB Instance. DB Snapshots are retained until they are deleted by the user. See here.

2) Is it possible to share tables across multiple instances?

Yes, the instances must be in the same security group.

3) When I first connected to the
instance, I found there were three
databases: the one I specifically
created, innob, and mysql.

The innodb and mysql tables are needed for mysql to run. You should use the one you created.

咆哮 2024-08-27 08:12:18

您可以针对 Amazon RDS 使用 MySQl 命令 mysqlimport(导入)和 mysqldump(导出)。 IIRC 导入限制为 1GB

You can use MySQl commands mysqlimport (import) and mysqldump (export) against Amazon RDS. IIRC Imports are limited to 1GB

无远思近则忧 2024-08-27 08:12:18

TFD:导入不限于1GB。但是,aws 建议,如果您导入的数据超过 1g,则应将表与平面文件分开导入,而不是从 mysqldump 整体导入。

http://developer.amazonwebservices.com/connect/entry.jspa?externalID=第2933章

TFD: Imports are not limited to 1GB. However, aws recommends that if you are importing more than 1g, you should import tables separately from flatfiles, rather than monolithically piped in from mysqldump.

http://developer.amazonwebservices.com/connect/entry.jspa?externalID=2933

皇甫轩 2024-08-27 08:12:18

关于 RDS 的其他一些值得了解的事情

  • 出于安全原因,我们无法从 VPC 内部迁移数据库实例
    到外部 VPC。
  • 我们可以将不在VPC内的Db实例迁移到VPC内。
  • 在快照期间,所有 RDS 实例(包括只读副本)上的 I/O 操作都会暂停。
  • 在发生故障转移时,Aurora 副本会变成普通的 Db 实例,而普通的 RDS 实例不支持此功能。
  • 多可用区中的 RDS 实例仅用于灾难恢复目的,并不提高读取性能。
  • 为了提高读取性能,我们应该拥有只读副本。
  • AWS 不收取从主 RDS 实例到辅助 RDS 实例的复制费用。
  • Redshift用于OLAP事务并具有列式存储。
  • Dynamo Db 提供按钮缩放,即缩放无需停机。但对于其他 RDS 实例则并非如此。
  • DMS - 数据迁移服务可用于将任何数据库迁移到 AWS。 AWS 将处理所有复杂问题。

Few other Good to know things about RDS

  • For security reasons we can not migrate Db instances from inside VPC
    to outside VPC.
  • We can migrate Db instances which is not in VPC to VPC.
  • I/O operations are suspended on all RDS instances(including Read Replica's) for the duration of snapshots.
  • Aurora replica's become normal Db instances in case of failover, where as normal RDS instances do not support this.
  • RDS instances in multi AZ are used for Disaster recovery purpose only not to boost read performance.
  • So as to boost read performance we should have read replica's.
  • AWS doesn't charge for replicating from primary to secondary RDS instance.
  • Redshift is used for OLAP transactions and has columnar storage.
  • Dynamo Db offers push button scaling, i.e. no downtime for scaling. Whereas thats not true for other RDS instances.
  • DMS - Data migration service can be used to migrate any db to AWS. AWS will take care of all the complexities.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文