amazon-rds

RDS with Cloud Formation and AZ issues

霸气de小男生 提交于 2019-12-21 06:58:31
问题 I am using cloud formation to create a setup containing an RDS instance. I am having some difficulties creating the RDS Instance on the account of the following error: DB Subnet Group doesn't meet availability zone coverage requirement. Please add subnets to cover at least 2 availability zones. Current coverage: 1 The problem is that the entire setup is on a single AZ... what am i supposed to do? just create an extra subnet in a different AZ that has nothing in it just for the RDS? Maybe

Connect to Amazon RDS with PHP

删除回忆录丶 提交于 2019-12-21 05:13:07
问题 I am trying to connect my RDS Instance with my PHP connection file. This is what I have in my file: define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'User Name'); define('DB_PASSWORD', 'Password'); define('DB_DATABASE', 'DATABASE'); $connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die(mysql_error()); $database = mysql_select_db(DB_DATABASE) or die(mysql_error()); I replaced localhost with my endpoint (rds thing) url, username and password with my RDS Instance user

Backup MySQL Amazon RDS

試著忘記壹切 提交于 2019-12-20 09:39:51
问题 I am trying to setup Replica outside of AWS and master is running at AWS RDS. And I do not want any downtime at my master. So I setup my slave node and now I want to backup my current database which is at AWS. mysqldump -h RDS ENDPOINT -u root -p --skip-lock-tables --single-transaction --flush-logs --hex-blob --master-data=2 --all-databases > /root/dump.sql I tested it on my VM and it worked fine but when tying it with RDS it gives me error mysqldump: Couldn't execute 'FLUSH TABLES WITH READ

How to set database timezone for a AWS RDS instance [duplicate]

﹥>﹥吖頭↗ 提交于 2019-12-20 08:50:04
问题 This question already has answers here : Adjusting for the default time-zone setting on RDS (5 answers) Closed 6 years ago . We use the latest MySQL server on the AWS RDS instance and we have configured to run it on US-East data center. We are assuming that any new Date() or Time.now() invocation will store the date in the timezone in which the database server is running. Is there a way to point my AWS RDS instance running on US-East to point to the PST timezone, so that any persistence of

How to allocate IP address in VPC to RDS instance?

若如初见. 提交于 2019-12-20 02:34:28
问题 I have an RDS instance started in a DB Subnet Group in my VPC. This instance has an endpoint of the form someDatabase-db-small.abcd1234.us-east-1.rds.amazonaws.com:3306 . How does one allocate to this instance an IP address in the VPC subnet 10.0.0.0/24 ? 回答1: The instance will already have an IP address in that range allocated. Use something like 'dig' to lookup the IP address of the endpoint from inside of the VPC and you will get back an IP address from your VPC subnet. 来源: https:/

Amazon RDS - are there workarounds to change a database time zone in SQL Server?

懵懂的女人 提交于 2019-12-19 23:58:21
问题 Amazon recently announced support for time zone change in Oracle RDS. Since this is still not supported for Microsoft SQL Server 2012, are there any workarounds, to obtain functionality similar to changing the whole database time zone? 回答1: Since you're asking for workarounds... We basically totally disregard server time/database time zone and work entirely off of UTC. GetUtcDate() for instance for all 'DateCreated' columns. Since we've committed to that approach we just don't bump up against

JDBC Connection Pool test query “SELECT 1” does not catch AWS RDS Writer/Reader failover

久未见 提交于 2019-12-19 16:57:11
问题 We are running an AWS RDS Aurora/MySQL database in a cluster with a writer and a reader instance where the writer is replicated to the reader. The application accessing the database is a standard java application using a HikariCP Connection Pool. The pool is configured to use a "SELECT 1" test query on checkout. What we noticed is that once in a while RDS fails over the writer to the reader. The failover can also be replicated manually by clicking "Instance Actions/Failover" in the AWS

AWS Elastic Beanstalk change RDS Endpoint

試著忘記壹切 提交于 2019-12-18 12:49:23
问题 How do I change the configured RDS endpoint of an AWS Elastic Beanstalk environment? E.g. after the RDS database was deleted or should be replaced with a new RDS database. 回答1: Update The topic remains complex and the AWS Elastic Beanstalk (EB) documentation could still do a better job to clarify available options. The question has been about how to change an RDS endpoint , which seems to be read in two different ways: One could interpret it about how to attach an existing externally managed

Is there a way to run initial SQL when creating an RDS database instance using CloudFormation?

断了今生、忘了曾经 提交于 2019-12-18 10:47:20
问题 I am creating an RDS instance using CloudFormation using this: "Resources": { "myDB": { "Type": "AWS::RDS::DBInstance", "Properties": { "AllocatedStorage": "5", "DBInstanceClass": "db.m1.small", "Engine": "MySQL", "EngineVersion": "5.5", "DBName": "mydb", "MasterUsername": { "Ref": "DBUser" }, "MasterUserPassword": { "Ref": "DBPassword" }, "DBParameterGroupName": { "Ref": "myRDSParamGroup" } } } and it all works. But I need to run initial SQL on the DB when its created, to setup my apps

How to connect to a remote MySQL database via SSL using Play Framework?

给你一囗甜甜゛ 提交于 2019-12-17 17:36:18
问题 I deploy Play applications in distributed environments, backed by a remote MySQL database. Specifically, the applications are hosted on heroku, and the database is on Amazon RDS (though this really applies to any remote database connection). Since the database isn't just on localhost, I'd prefer that the remote MySQL connection is made through SSL for security. Given a CA certificate to trust, how can I configure a Play application to connect to the MySQL server through SSL, only if the host