amazon-rds

How to copy a database using RDS

筅森魡賤 提交于 2019-12-04 23:34:52
I have a database instance on RDS with 2 databases on it. Is there a good way using the RDS command line tools to copy the one database to the other? If not, what is the recommended way of doing it? Thanks in advance. I'd use mysqldump to get the tables and then mysql to import them. Update 2014/07/08 : Depending on what you're planning to do here, another solution today is to setup replication and then to promote the slave to be the master. That is for example if you want to update your database's release/version: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html If you

Is it possible to query an Amazon RDS instance directly from API Gateway?

大兔子大兔子 提交于 2019-12-04 23:13:36
I'm new to API Gateway, and as far I have tried is a really powerful tool. For the project I'm working right now we are using a PostgreSQL instance in RDS. I've seen that is possible to access directly to DynamoDB tables from API Gateway, so I was wondering if is there a way to do so for relational databases. So I created a resource with a GET method and configure it to connect to my database, but I wasn't sure if I used the right parameters: Provided information about the target backend So I wasn't sure about the arguments in each setting's field. In AWS Subdomain I wrote the public URL as if

Kubernetes container connection to RDS instance in separate VPC

时光毁灭记忆、已成空白 提交于 2019-12-04 20:05:20
问题 I have a Kubernetes cluster running in Amazon EC2 inside its own VPC, and I'm trying to get Dockerized services to connect to an RDS database (which is in a different VPC). I've figured out the peering and routing table entries so I can do this from the minion machines: ubuntu@minion1:~$ psql -h <rds-instance-name> Password: So that's all working. The problem is that when I try to make that connection from inside a Kubernetes-managed container, I get a timeout: ubuntu@pod-1234:~$ psql -h <rds

AWS Lambda - Unable to connect to SQL Server RDS

可紊 提交于 2019-12-04 19:28:46
Hi I was having the same problem as this post but the posted answer (no sample code) wasn't provided so I will start a new thread and ask you guys. I have created a AWS Serverless Application (.Net Core) project for our lambda function and below code is what I used to connect in AWS RDS. string ConnectionString = "Data Source=rds4abc1190.asdfqwerqb9l.us-east-1.rds.amazonaws.com,2855;Initial Catalog=MyDatabase;Persist Security Info=True;User ID=myID;Password=mypassword;Encrypt=False"; using (var Conn = new SqlConnection(ConnectionString)) { using (var Cmd = new SqlCommand("SELECT * from

RDS instance CPU utilization

感情迁移 提交于 2019-12-04 17:06:55
My amazon mysql large RDS instance's CPU utilization is going very high (about 70%) without any genuine reason. How to find which query or process is harming my instance? thanks The standard method is to examine SHOW PROCESSLIST or SHOW ENGINE InnoDB STATUS to see what's going on. You are using InnoDB, right? It could also be due to the autoback feature RDS provides. I think AWS RDS does an automatic back up around midnight everyday, you must factor this into your calculations 来源: https://stackoverflow.com/questions/19053980/rds-instance-cpu-utilization

Two Questions Regarding AWS' RDS Multi AZ

拜拜、爱过 提交于 2019-12-04 16:42:01
问题 I understand that when upgrading to a Multi-AZ rds from a Single-AZ, there occurs a "breef i/o freeze". What exactly does that mean? When an upgrade is made to a Multi-AZ deployment, say from small to large, will the production database be impacted at all? Will it be able to use the backup databse, then failover? 回答1: Answers to your questions are written down : When you choose to move from Single AZ to Multi AZ, brief I/O freeze happens. It means that for some duration database won't be

ERROR 2005 (HY000): Unknown MySQL server host in aws

旧巷老猫 提交于 2019-12-04 16:29:24
问题 I have created an e-commerce site in angular js. And I need to host the same in amazon web service. So inorder to host the same I created an ec2 instance first. Now after that added an rds instance with a security group of VPC by allowing all ip's as outbound and inbound. While creating security group I specified for mysql and for all connection. Still after I remotely loged into the instance and try to connect to the end point from rds instance using mysql -u username -p password -h ********

Error connecting to Amazon RDS (MySQL) from node-mysql

眉间皱痕 提交于 2019-12-04 15:42:55
I am trying to connect to my Amazon RDS (MySQL) instance from a nodejs code hosted in Lambda using the "felixge/node-mysql" package. I need help to find out what I am doing wrong. I am getting "connect ETIMEDOUT" error. My code is hosted in Lambda and both Lamda and RDS are of the same account and region. I have also attached the RDSFullAccess Policy to the IAM role. RDS instance is also accessible from all IPs(no whitelist/blacklisted IPs). At the same time, I am able to connect from my local MySQL Workbench with same credentials. Here is my code: var connection = mysql.createConnection({

Can't store UTF-8 in RDS despite setting up new Parameter Group using Rails on Heroku

房东的猫 提交于 2019-12-04 13:39:54
问题 I'm setting up a new instance of a Rails(2.3.5) app on Heroku using Amazon RDS as the database. I'd like to use UTF-8 for everything. Since RDS isn't UTF-8 by default, I set up a new Parameter Group and switched the database to use that one, basically per this. Seems to have worked: SHOW VARIABLES LIKE '%character%'; character_set_client utf8 character_set_connection utf8 character_set_database utf8 character_set_filesystem binary character_set_results utf8 character_set_server utf8 character

How to properly connect AWS Lambda to RDS in VPC?

六眼飞鱼酱① 提交于 2019-12-04 13:03:25
I am trying to build a graphQL API with Serverless Framework on AWS-Lambda using Apollo-Server-Lambda etc. I need to use a not publicly available PostgreSQL RDS instance. I can get lambdas up and running and sending back requests when not in VPC. I can get a Postgres RDS Database up and running and connected to PgAdmin (when in publicly available mode). The problem is once I make the RDS Postgres 'non public' and try to get all these pieces talking together I fail. I have tried multitude of different approaches. This is regularly portrayed as magic. It is wonderfully written https://gist