mysql - 如何将我的 Amazon Elastic Beanstalk MySQL RDS 实例升级到 5.6?

标签 mysql amazon-web-services amazon-rds amazon-ebs

AWS 提供了有关如何使用只读副本将 MySQL 5.5 实例升级到 MySQL 5.6 的指南。然而,它的最后一步是将您的应用程序指向新数据库,但 EBS 没有提供通过 Web 控制台将您的应用程序指向不同数据库的机制。升级基于 EBS 的 RDS 实例的推荐路径是什么?

最佳答案

我通常建议用户在 Beanstalk 之外提供数据库,这个问题就是其中之一。

还有

For a production environment, you may want to launch a database instance outside of your environment and configure your application to connect to it outside of the functionality provided by Elastic Beanstalk.

AWS RDS 确实支持从 5.5 升级到 5.6。

MySQL 5.5 to MySQL 5.6

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.MySQL.html

但在您当前的设置中。

  1. 创建 RDS 数据库的快照。
  2. 根据该快照在 Beanstalk 之外配置 RDS 数据库
  3. 配置新的 Elastic Beanstalk 环境并设置这些环境属性。

In the Environment Properties section, define the variables that your application reads to construct a connection string. For compatibility with environments that have an integrated RDS DB instance, use the following:

RDS_HOSTNAME – The hostname of the DB instance.

Amazon RDS console label – Endpoint is the hostname.

RDS_PORT – The port on which the DB instance accepts connections. The default value varies between DB engines.

. Amazon RDS console label – Port

RDS_DB_NAME – The database name, ebdb.

Amazon RDS console label – DB Name

RDS_USERNAME – The user name that you configured for your database.

Amazon RDS console label – Username

RDS_PASSWORD – The password that you configured for your database.

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.RDS.html

关于mysql - 如何将我的 Amazon Elastic Beanstalk MySQL RDS 实例升级到 5.6?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23462738/

相关文章:

php - 日期和当前时间之间的时差?

php - 列数不匹配,但我不想覆盖前两列

php - 将查询中的数据插入数组

postgresql - 将大(250Gb)RDS PostgreSQL 数据库转储到我的本地机器中

amazon-web-services - 无法通过 IAM 身份验证访问 RDS 数据库

postgresql - Postgres RDS pg_recvlogical 复制角色

php - 如何使用PHP检查用户是否已向Mysql输入数据?

amazon-web-services - 无法部署到 Tomcat - 没有 httpd 进程

java - 用于授予图片访问权限的 S3 存储桶签名 URL

amazon-web-services - 与 azure 相比,安排在 aws 中启动和停止 Ec2 实例?