php - 如何创建 amazon MySQL RDS 实例的镜像并连接到它?

标签 php mysql amazon-web-services amazon-s3 amazon-ec2

如何创建 amazon MySQL RDS 实例的镜像并连接到该实例,

我读到亚马逊有 RDS 实例的自动备份和自动恢复,他们有自动备份和数据库快照,所以我想可以连接到数据库快照。

好吧,我只是想连接到我的生产 RDS 实例的镜像,这样我就可以在不影响生产性能的情况下运行繁重的查询。

我无法在亚马逊常见问题解答 (http://aws.amazon.com/rds/mysql/) 中找到

这个问题也没有帮助我理解我是否可以做到以及如何做到 Copying or Replicating Amazon RDS MYSQL weekly

这里还有一个很好的引用:http://aws.amazon.com/rds/faqs/#23但我不知道应该做什么才能连接到这样的实例。

这可能吗?你能解释一下吗?

最佳答案

  1. 查看数据库实例
  2. 单击要复制的特定实例
  3. 点击实例操作并选择创建只读副本

如果您需要自动创建只读副本,请查看 http://docs.aws.amazon.com/AmazonRDS/latest/CommandLineReference/CLIReference-cmd-CreateDBInstanceReadReplica.html .您可以使用命令行工具来创建将按需创建实例的脚本。

有关亚马逊读取副本的信息,请参阅 http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html .

摘录如下:

Updates made to the source DB instance are replicated to the read replica. The read replica handles read-only traffic from your application, which can reduce the load on your source DB instance. Read replicas allow you to elastically scale out beyond the capacity constraints of a single DB instance for read-heavy database workloads.

关于php - 如何创建 amazon MySQL RDS 实例的镜像并连接到它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19137453/

相关文章:

php - 创建MySql数据库备份/回滚

php - 当我直接输入数字时 decbin 有效,但当我从数据库中提取它时则无效

mysql - 无法更新为 tinyint 和 varchar 字段的默认值 null 和空字符串

java - MysqlConnectionPoolDataSource - 无法使用 jdbc 插入到 mysql 数据库?

asp.net - 在asp.net中将数据表插入mysql数据库

amazon-web-services - S3 通知在其他区域调用 sns 主题

java - 如何在亚马逊 EC2 中启用 mod_proxy?

php - Codeigniter 2.1、php 5.3、甲骨文和 MySQL

php - where OR where mysql - 带有两个 where 子句的 mysql 查询

hadoop - 为什么 Hive "create external table"在 S3 上将数据存储在子文件夹 "-ext-10000"下?