rds

Not able to connect to amazon RDS with MYSQL workbench

安稳与你 提交于 2021-01-29 02:19:14
问题 I am stuck here in connecting with RDS instance with MySQL workbench I getting following error Can't connect to MySQL server on 'visitorbook.cdokqvroltrt.us-west- 2.rds.amazonaws.com' (10060) I have configured my security group for inbound traffic from my IP for port 3306. 回答1: Use ssh tunnel through the EC2 instance with your pem file. No need to change the security group. If DB connection works form ec2 instance, then it will work from local machine as well. You can setup ssh tunneling

AWS Terraform tried to destory and rebuild RDS cluster

六眼飞鱼酱① 提交于 2021-01-28 19:52:54
问题 I have an RDS cluster I built using terraform, this is running deletion protection currently. When I update my terraform script for something (example security group change) and run this into the environment it always tries to breakdown and rebuild the RDS cluster. Running this now with deletion protection stops the rebuild, but causes the terraform apply to fail as it cannot destroy the cluster. How can I get this to keep the existing RDS cluster without rebuilding every time I run my script

Using docker with RDS (Prod), but confused about local DB setup (dev)

匆匆过客 提交于 2021-01-21 08:51:24
问题 I'm designing a Rails webapp using Docker and for a variety of reasons, I'd like to use RDS in the Production environment for its configurability & durability purposes, rather than a Docker container-based DB (this is a requirement). I realize that I can configure database.yml to point to my RDS instance for Prod env, and to some local DB instance in my local dev env. However, I'm confused as to whether to use a container-based DB in my local dev environment, or an external one like MySQL

Merging local PostgreSQL database file to AWS RDS database

纵然是瞬间 提交于 2021-01-07 03:39:55
问题 I have a local Postgres database in my local machine. Now I would like to merge a local Postgres database file to AWS existing RDS database. Does anyone know how to do this? Thank you in advance. 回答1: If the RDS instance is in a private subnet, then you need to tunnel through an EC2 instance to get to your RDS instance. Assuming your security groups are set so that you can ssh into the EC2 instance, and the EC2 instance has access to RDS on port 5432, you can do the following: Make a dump of

Merging local PostgreSQL database file to AWS RDS database

陌路散爱 提交于 2021-01-07 03:39:27
问题 I have a local Postgres database in my local machine. Now I would like to merge a local Postgres database file to AWS existing RDS database. Does anyone know how to do this? Thank you in advance. 回答1: If the RDS instance is in a private subnet, then you need to tunnel through an EC2 instance to get to your RDS instance. Assuming your security groups are set so that you can ssh into the EC2 instance, and the EC2 instance has access to RDS on port 5432, you can do the following: Make a dump of

将ECS自建数据库迁移到阿里云RDS

烂漫一生 提交于 2020-12-12 00:58:45
将 ECS 自建数据库迁移到阿里云 RDS 步骤: 1. 购买 RDS. 包月或者流量计费 2. 登录阿里云-》 “ 云数据库 RDS ” -》点击 “ 实例列表 ” , 3. 依次点击左侧 “ 帐号管理 ” ,以及右侧 “ 创建帐号 ” 。在页面中填写 “ 数据库帐号 ” , “ 密码 ” , “ 确认密码 ” 。(请牢记帐号和密码)点击确定后,可看到帐号创建成功,处于 “ 激活 ” 状态。 4. 点击左侧 “ 数据库管理 ” ,点击右侧 “ 创建数据库 ” 。在页面中填写 “ 数据库名称 ” , “ 支持字符集 ” , “ 授权帐号 ” , “ 帐号类型 ” 。点击 “ 确定 ” ,看到数据库的状态为 “ 创建中 ” ,等待 1-2 分钟,刷新,数据库状态更新为 “ 运行中 ” 。 5. 数据库迁移 点击 “ 管理控制台 ” ,然后点击页面中的 “ 数据传输 ” 。点击 “ 申请公测 ” , “ 立即开通 ” 。 6. 点击左侧边栏的 “ 数据迁移 ” ,点击 “ 创建在线迁移任务 ” ,在页面中依次填写 “ 任务名称 ” 。 在源库信息中填写 “ 实例类型 ” , “ECS 实例 ID” , “ 数据库类型 ” , “ 端口 ” , “ 帐号 ” 和 “ 密码 ” 在目标库信息中填写 “RDS 实例 ID” , “ 帐号 ” 和 “ 密码 ” 。填写完毕后,点击 “

Using PyMySQL, I can't connect to RDS

时光怂恿深爱的人放手 提交于 2020-08-08 08:19:08
问题 Using PyMySQL , I get pymysql.err.OperationalError: (1045, u"Access denied for user 'my_user'@'<MY_IP_ADDRESS>' (using password: YES)") , however, I can login from the command line or MySQL Workbench using the same credentials on this machine. And, I can connect to localhost using PyMySQL. Here's my sample test code: import pymysql prod_conn = pymysql.connect( host='correct-host-name.us-west-2.rds.amazonaws.com', user='my_user', password='correct_password', port=3306, database='my_db')

Using PyMySQL, I can't connect to RDS

怎甘沉沦 提交于 2020-08-08 08:19:08
问题 Using PyMySQL , I get pymysql.err.OperationalError: (1045, u"Access denied for user 'my_user'@'<MY_IP_ADDRESS>' (using password: YES)") , however, I can login from the command line or MySQL Workbench using the same credentials on this machine. And, I can connect to localhost using PyMySQL. Here's my sample test code: import pymysql prod_conn = pymysql.connect( host='correct-host-name.us-west-2.rds.amazonaws.com', user='my_user', password='correct_password', port=3306, database='my_db')

Is there a way to connect through remote desktop to a running Windows Server container?

不羁的心 提交于 2020-07-16 16:35:33
问题 I want to run an old .NET application in a docker windows server container (https://hub.docker.com/r/microsoft/windowsservercore/). Everything would be easy if this application didn't require an UI. Its UI does a lot of stuff and this stuff cannot be done through command line or other API. Basically, the perfect thing would be to reach this running container through RDP. From my understanding, it is nothing more than a service (TermService) running on a certain TCP port (3389 being the

Reading Rds file from git

懵懂的女人 提交于 2020-05-18 04:12:12
问题 I am trying to read rds file, directly from GitHub. I am able to read any file from git but when I try to read rds file using gzcon its asking value for con. dat <- readRDS(gzcon(url("http://mgimond.github.io/ES218/Data/ABC.rds"))) exception : con has not defined. what type of connection it requires? 回答1: If you are having issues one way is to download the file as a tempfile. url <- "mgimond.github.io/ES218/Data/ACS.rds" temp <- tempfile() # create a tempfile download.file(url, temp) #