amazon-rds

Achieving read and write query availability in AWS Multi-AZ RDS

假装没事ソ 提交于 2019-12-08 13:39:33
问题 I have configured Multi-AZ RDS mysql instance with no read replicas in a development environment and I am testing Multi-AZ RDS fail-over by rebooting the DB instance. Below is my observation: During RDS fail-over, the client application will not lost connection but at the same time it won't be able to access the database as well and once fail-over completes, client will able to access the database. Update 1: Above observation is wrong.What I observed just now is that after fail-over

AWS Lambda - Unable to connect to SQL Server RDS in VPC

こ雲淡風輕ζ 提交于 2019-12-08 13:26:46
问题 I am trying to connect to my SQL Server RDS instance from AWS Lambda in my VPC (using .net core). When I attempt to run the Lambda function, it returns: "errorType": "SqlException", "errorMessage": "Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections. The duration spent while

Connecting to RDS database from node.js

前提是你 提交于 2019-12-08 13:22:03
问题 I am trying to learn node.js so that I can actually get started on working on my personal project. I have been trying to follow the examples in the book "Learning node.js" (by Marc Wandschneider). I, at this point, decided to forgo practicing his example, and go straight into using his code as framework for my practice code. In my practice code, all I am trying to do is connect to my RDS database (no, I am not using Elastic Beanstalk, btw), and output contents of one of the tables. Seems

Connecting to Amazon RDS using MySQL Workbench

荒凉一梦 提交于 2019-12-08 10:50:27
问题 I just heard about amazon rds and MySQL Workbench today from my partner for my group project, so I'm not very familiar with them. My partner has created a host account on amazon rds for our database, and I am suppose to help create table and make sql queries. However, I'm having no luck connecting to the database through MySQL workbench. The error message I received is "Unknown MySQL server host '*host_address*'. I have tried adding port 3306 to my firewall as suggested by a blogger, but that

External hive metastore for EMR

无人久伴 提交于 2019-12-08 06:51:21
问题 I am creating a EMR cluster with default hive meta store , after which i am overriding the hive-site.xml with some property which are pointing the aws rds instance as hive metastore , everything is fine , but after restarting the hive server , i am not able to use RDS as hive metastore. It is still usin the default hive metastore created by EMR. 回答1: You can override the default configurations for applications by supplying a configuration object for applications when you create a cluster. The

gzip table to csv on AWS instance, prior to downloading / saving locally with psql

有些话、适合烂在心里 提交于 2019-12-08 05:28:30
问题 I'm new to PostgreSQL and the psql CLI. My bandwidth is extremely limited, which results in it taking hours to download each table from an AWS instance, that are 1 - 5 GB's each. The current command I use, after logging into the DB with psql: \copy (SELECT * FROM table) TO table.csv CSV DELIMITER ',' Is it possible to query a table, similar to the above, that actually zips the csv file ON the Amazon PostgreSQL instance, prior to downloading and saving locally, thus reducing the 1 - 5 GB

.NET Core AWS RDS CONNECTION

本秂侑毒 提交于 2019-12-07 21:17:22
问题 I am creating a .NET Core Web API on Amazons AWS, Elastic Beanstalk. I am trying to add a database, but their guide to add a database does not work for .Net Core http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_NET.rds.html It says to get the relevant information using "ConfigurationManager.AppSettings;", but this is not possible in .NET Core. Can anybody give some inforamtion about how to get the database informations? ( "RDS_DB_NAME" "RDS_USERNAME" "RDS_PASSWORD" "RDS

gzip table to csv on AWS instance, prior to downloading / saving locally with psql

喜你入骨 提交于 2019-12-07 17:15:27
I'm new to PostgreSQL and the psql CLI. My bandwidth is extremely limited, which results in it taking hours to download each table from an AWS instance, that are 1 - 5 GB's each. The current command I use, after logging into the DB with psql: \copy (SELECT * FROM table) TO table.csv CSV DELIMITER ',' Is it possible to query a table, similar to the above, that actually zips the csv file ON the Amazon PostgreSQL instance, prior to downloading and saving locally, thus reducing the 1 - 5 GB downloads to < 1 GB; significantly reducing the download times? Something like: \copy (SELECT * FROM table)

How to import oracle dump from ec2 instance to RDS in AWS

青春壹個敷衍的年華 提交于 2019-12-07 16:37:40
问题 I am new to RDS in AWS.I have a database dump file that is residing on an ec2 instance . I have few questions : How can I move the dump file to RDS Instance . What will be the pre requisites to do this. I mean what client do I need to install to do this. Any help or lead is appreciated. Thanks 回答1: I agree that the official document is quite confusing and not clear when it comes to Oracle import of dump file. There is another document step by step instructions from amazon at http://d0

terraform local-exec command for executing mysql script

家住魔仙堡 提交于 2019-12-07 16:33:12
问题 I created the aws_db_instance to provision the RDS MySQL database using Terraform configuration. I need to execute the SQL Scripts (CREATE TABLE and INSERT statements) on the RDS. I'm stuck on what command to use here?? Anyone has the sample code in my use case? Please advise. Thanks. resource "aws_db_instance" "mydb" { # ... provisioner "local-exec" { command = "command to execute script.sql" } } 回答1: This is possible using a null_resource that depends on the aws_db_instance.my_db . This way