amazon-rds

Backup MySQL Amazon RDS

纵然是瞬间 提交于 2019-12-02 21:49:31
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 LOCK': Access denied for user 'root'@'%' (using password: YES) (1045) Is it because i do not have super

Elastic Beanstalk connect to RDS from shell SSH

北城余情 提交于 2019-12-02 20:55:48
I have a python application on an Elastic Beanstalk EC2 instance which is connected to an PostgreSQL RDS. My application works fine and uses the environment variables that are set by Elastic Beanstalk to connect with the database: os.environ['RDS_DB_NAME'] os.environ['RDS_USERNAME'] os.environ['RDS_PASSWORD'] os.environ['RDS_HOSTNAME'] os.environ['RDS_PORT'] However, this doesn't work when I login on the EC2 instance with SSH. The RDS environment variables are not set. Since my application works in the browser, I think it cannot be the security groups. I've also tried to access the variables

AWS RDS How to set up a MySQL Database

浪子不回头ぞ 提交于 2019-12-02 17:43:21
问题 I have a Java application running on successfully on Amazon Web Services Elastic Beanstalk . I am trying to set up MySQL . I have created a DB Instance as you can see: Question 1: How do I connect my Java App to the Database? I have the following code (after viewing this): @Bean public DataSource dataSource() { // Openshift // String host = System.getenv("OPENSHIFT_MYSQL_DB_HOST"); // String port = System.getenv("OPENSHIFT_MYSQL_DB_PORT"); // String username = System.getenv("OPENSHIFT_MYSQL

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 17:17:59
This question already has an answer here: Adjusting for the default time-zone setting on RDS 5 answers 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 date will store the values in PST instead of EST. (i.e. If store an object around 10 AM EST, the db column should reflect 7 AM

Amazon RDS - Online only when needed?

吃可爱长大的小学妹 提交于 2019-12-02 17:16:15
I had a question about Amazon RDS. I only need the database online for about 2 hours a day but I am dealing with quite a large database at around 1gb. I have two main questions: Can I automate bringing my RDS database online and offline via scripts to save money? When I put a RDS offline to stop the "work hours" counter running and billing me, when I bring it back online will it still have the same content (i.e will all my data stay there, or will it have to be a blank DB?). If so, is there any way around this rather than backing up to S3 and reimporting it every time? Here's a script that

How to transfer Oracle dump file to AWS RDS instance?

ε祈祈猫儿з 提交于 2019-12-02 11:39:15
问题 I have an existing .dmp file on EC2 instance which has access to RDS instance running Oracle 11g on AWS. I have read Importing Data in AWS RDS, it seems that AWS does not support this kind of direct transfer. It does require to have a Source Oracle DB from where you have to create/export a .dmp file which you can then transfer to destination RDS instance by establishing a db link. My question is, is there a way I can transfer/import my existing .dmp file to the DATA_DUMP_DIR on RDS Instance?

AWS RDS: Connect using Navicat

浪子不回头ぞ 提交于 2019-12-02 08:41:15
问题 I have just created RDS Instance in N.Virginia & trying to connect that database using Navicat. But I'm unable to connect it. After searching over internet I came to know that we need to configure Security Groups. But in my case there is a notification : Your account does not support the EC2-Classic Platform in this region. DB Security Groups are only needed when the EC2-Classic Platform is supported. Instead, use VPC Security Groups to control access to your DB Instances. Go to the EC2

How to edit user permissions for AWS RDS

大憨熊 提交于 2019-12-02 06:42:19
问题 My previous post here (mysqli_query() returns "Table doesn't exist" for known table - Permissions issue?) explains the details of how I arrived at this issue. I am now convinced that the username and password which I set while creating my DB instance have not been given the appropriate permissions to allow me to edit the contents of the my own database. This is extremely frustrating, so if anyone has any tips or tricks on how to modify these permissions I would really appreciate it. To

Master user lost it's permissions unexpectedly on SQL Server (rds instance)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 03:36:59
问题 SQL Server master user lost his permissions unexpectedly. When I try to access my database tables, I get the following error on SSMS: The SELECT permission was denied on the object 'query_store_runtime_stats', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229) If I try to give permission to master user, I get the following error when mapping credentials (Security > Logins > Masteruser > Properties): One or more databases are inaccessible and will not be displayed

How to load data from S3 to PostgreSQL RDS

房东的猫 提交于 2019-12-02 01:29:12
问题 I have a need to load data from S3 to Postgres RDS (around 50-100 GB) I don't have the option to use AWS Data Pipeline and I am looking for something similar to using the COPY command to load data in S3 into Amazon Redshift. I would appreciate any suggestions on how I can accomplish this. 回答1: http://docs.aws.amazon.com/redshift/latest/dg/t_loading-tables-from-s3.html Use the COPY command to load a table in parallel from data files on Amazon S3. You can specify the files to be loaded by using