How to connect Google Data Studio with AWS RDS MySQL behind VPC? - mysql

I have a AWS RDS MySQL database hosted inside VPC. I am having problem with connecting Google Data Studio since it's obviously outside the VPC.
I have enabled Publicly Accessed option in the RDS but still can't connect, even from MySQL Workbench.
Anyone has successfully connect between AWS RDS MySQL inside VPC and Google Data Studio? What's the setup and configuration?

I have posted a similar question to connect MySQL & Google Data Studio (while having SSL enabled). My latter question still needs to be answered, but I actually got MySQL Workbench to work with our AWS RDS MySQL-DB.
Steps:
Add SSL access to the AWS's MySQL database user as recommended in the documentation: GRANT USAGE ON *.* TO 'encrypted_user'#'%' REQUIRE SSL;
Add your current IP address to the AWS instance's firewall-whitelist, to allow for remote MySQL DB access.
Add hostname, port (3306), encrypted_user (created above) and password.

Related

Why is my MySQL Database on AWS not accessible?

I cannot reach my MySQL Database instance I created on AWS.
What I tried was to set the public access of the Database to "Publicly accessible" here:
Also I tried to set Inbound/Outbound rules for the MySQL port here:
Honestly I think using "All" ports would include 3306 too. Anyways, I tried it this way because yet it didn't work. I cannot connect to the database via MySQL Workbench, nor can I use a ping request on the given endpoint.
I would be glad if someone here has an idea what I could try else.
This will not work if you have deployed it in a private subnet which has no internet access.
Another possibility is that there is ACLs that is stopping the traffic. Security group only touch the RDS instance, the ACLs control traffic in the entire subnet.
Here is a dev AWS tutorial that creates a web application that stores data in MySQL running on the cloud. It will show you how to setup the database and the inbound rules. Once you do, you can store data or query data from MySQL. Likewise, you can use MySQL Workbench to interact with MySQL on the cloud.
AWS RDS Tutorial

AWS Ubuntu Server with MySQL

I am currently running AWS ubuntu server to run some scrapers and selenium webdriver. I store all the data into MySQL database in the AWS. Is there a way to use my local mySQL workbench to remotely connect to AWS database.
Yes. You need to fist give your IP access to the security group that your Mysql EC2 is in. In the EC2 console, in the row that has your Mysql EC2, you will see a column for security group... click on the security group. You will then be able to add an entry into the security group's ACL to allow your IP address (the IP address of where the mysql workbench is located) access. Here is a link that goes into more details.
Once you have given your IP address access, you can point your workbench to the hostname of the EC2 instance that has mysql on it.

Can AWS RDS be used as a MySQL host only?

Is it possible to use AWS' RDS MySQL solution in tandem with my current file server host? By that, I mean, can I connect to the RDS MySQL server as I am with my hosts current database?
I've tried the AWS documentation but it seems a bit flaky in this area.
Thank you,
Amazon RDS is a database server, just like any other. If you start up an RDS MySQL server, you can connect to it from anything else that can connect to a MySQL server.
The difference is that you do not have direct host access to the RDS server. Meaning, you cannot SSH into it and get a command prompt.
But you can connect to it from any MySQL client, including MySQL Workbench.

Is there a way in Heroku to connect to a remote MySQL database?

Heroku supports no database other than PostgreSQL, but my question is here regarding remote database. Can a Heroku instance running Rails connect to a remote database connection? To be more specific, the remote database connection of MySQL resides at Amazon RDS.
If it's not possible at all, can I use remote database through HTTP requests generated by Rails code?
Can a Heroku instance running Rails connect to a remote database
connection?
Yes
To be more specific, the remote database connection of MySQL resides
at Amazon RDS.
Yes. See:
https://devcenter.heroku.com/articles/ruby-database-provisioning
https://devcenter.heroku.com/articles/amazon-rds#configuring-a-heroku-ruby-app-to-use-a-mysql-rds-instance
You must grant Heroku dynos access to your RDS instance. The recommended way to do this is to configure the RDS instance to only accept SSL-encrypted connections from authorized users and configure the security group for your instance to permit ingress from all IPs, eg 0.0.0.0/0.

AWS - How can I setup RDS?

I am trying to setup RDS on my AWS account. I created the RDS instance, But I am not able to access the database interface. I am trying to access it using putty, But it is saying - "Command not found".
Please clarify whether I am missing something.
Thanks
You didn't mention the RDS Database engine you are using, but here are some general tips.
Use a local database client (such as mysql workbench for mysql)
Make sure your RDS security group allows your local ip address to access the RDS instance on the correct port.
If you give more information about your setup we'll be able to help you more.