amazon-rds

Connecting Heroku to RDS using MySql2

二次信任 提交于 2019-12-13 02:13:28
问题 All I'm trying to do is deploy my Rails app on Heroku with a db instance on RDS, which seems like it should be straightforward. I'm using the mysql2 adapter in my database.yml and have pushed to heroku and added my db instance per this answer. I've basically followed it to a T, and I don't get a missing gem error. But this is what the heroku logs reveal: /app/vendor/bundle/ruby/1.9.1/bundler/gems/mysql2-e5992664a7bc/lib/mysql2/client.rb:56:in connect': Can't connect to MySQL server on

MemoryError when Using the read() Method in Reading a Large Size of JSON file from Amazon S3

一笑奈何 提交于 2019-12-13 00:16:53
问题 I'm trying to import a large size of JSON FILE from Amazon S3 into AWS RDS-PostgreSQL using Python. But, these errors occured, Traceback (most recent call last): File "my_code.py", line 67, in file_content = obj['Body'].read().decode('utf-8').splitlines(True) File "/home/user/asd-to-qwe/fgh-to-hjk/env/local/lib/python3.6/site-packages/botocore/response.py", line 76, in read chunk = self._raw_stream.read(amt) File "/home/user/asd-to-qwe/fgh-to-hjk/env/local/lib/python3.6/site-packages/botocore

Terraform plan wants to destroy imported RDS resource

我们两清 提交于 2019-12-12 16:34:42
问题 I used the following commands to replace a previously deployed RDS instance with a manually configured RDS instance: ./terraform destroy -target aws_db_instance.my_db ./terraform import aws_db_instance.my_db my-rds-instance (Had to destroy the old instance before I could use import .) When I now run ./terraform plan , terraform wants to destroy and re-create the RDS db: -/+ aws_db_instance.my_db (new resource required) id: "my-rds-instance" => <computed> (forces new resource) address: "my-rds

Use AppSync and Amazon RDS with serverless-graphql

点点圈 提交于 2019-12-12 13:40:30
问题 There is this great repository with example implementations of different serverless scenarios. Right now I'm struggling with the combination of AppSync and Amazon RDS. I tried the implementation of the standalone rds, and the appsync examples provided in the repository. These are working like a charm. But obviously there are many differences and difficulties if you'd like to combine these technologies. I used the schema, resolver and handler functions from the rds directory and combined it

How to connect to an Amazon MySQL RDS instance via PHP over SSL

痞子三分冷 提交于 2019-12-12 12:26:49
问题 I have an EC2 instance running a WordPress site. The WordPress db is on a RDS instance. I want to connect to the db over SSL. From what I've read, the MySQL extension that WordPress uses out of the box doesn't support SSL. So, I've installed a WordPress db script that uses MySQLi, which does support SSL. The problem I encountered is that Amazon only supplies one key file (more info), and all the examples I can find using MySQLi over SSL include at least 3 files: $db = mysqli_init(); $db->ssl

Can I use Amazon ELB for my RDS instance for load balancing?

孤者浪人 提交于 2019-12-12 11:12:02
问题 I have two questions: Can I use ELB on my RDS instance for load balancing? Can I install multiple servers on EC2 instance and run single ELB instance for all servers? 回答1: 1-If you mean having only one RDS instance, there is no point in load balancing requests in front of it. If you mean having more than one RDS instance, it does not make much sense as well to load balance requests, because your database servers will most likely have different data in a given point of time. The only exception

How do I fix InnoDB corruption locking a table name from creation (errno: -1) on AWS RDS?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 10:53:59
问题 TIP : Do not run ALTER statements in MySQL Workbench for a "Standard TCP/IP over SSH" connection. It is much better to shell into the server and run the ALTER from there. That way, if you lose connection to the server, the ALTER should still finish its job. I'm trying to create a new table in my database that I tried creating yesterday. The problem is, my internet's been losing connection in micro-dropouts. I believe that one of these blips happened when I was creating the table, and now when

Joining 2 large postgres tables using int8range not scaling well

随声附和 提交于 2019-12-12 08:22:41
问题 I'd like to join IP routing table information to IP whois information. I'm using Amazon's RDS which means I can't use the Postgres ip4r extension, and so I am instead using int8range types to represent the IP address ranges, with gist indexes. My tables look like this: => \d routing_details Table "public.routing_details" Column | Type | Modifiers ----------+-----------+----------- asn | text | netblock | text | range | int8range | Indexes: "idx_routing_details_netblock" btree (netblock) "idx

Trying to migrate local mysql server to AWS

亡梦爱人 提交于 2019-12-12 08:16:48
问题 Please advise on how to migrate my local mysql server to the cloud. Currently I have a Fedora linux box and a NAS attached to it via ethernet. I believe the best way to go about it is : Take a mysqldump of all databases Create an amazon RDS instance and try to load from the created mysqldump Shift local connection to this instance Am I on the right track ? How should I go about doing (1). I have a username and password based access to the mysql server and it has only 1 database. I tried to

How do I call a stored procedure in SQL Server with Data Pipeline in ShellCommandActivity (AWS Data Pipeline)

烂漫一生 提交于 2019-12-12 07:03:42
问题 I know you can call a MySQL procedure with the script below, but is the same possible for SQL Server? mysql --host host_url --port port_number --user username --password password --execute="CALL stored_proc_name; I have SQL Server Express, and need to setup a procedure to be run daily. It's on RDS, and SQL Server Express doesn't have a task scheduler.. 回答1: The following should work: Download the SQL Server JDBC Driver. Choose to download the tar.gz file and unzip it. Among the extracted