Talend connection over VPN - mysql

I have a Talend Data Integration server (subscribtion product) and I want to load date to/from a MySQL database which is reachable over VPN tunnel.
Both servers are linux servers (RHEL).
Could you please suggest how can I connect from Talend to MySQL over VPN?
Thanks!

Create an SSH tunnel which makes MySQL appear on your localhost:3306 address then connect to that.

Related

Setup a MYSQL database on a Windows VPS for connecting outside network

I have a question about configuring or setting up a MySQL database for connecting outside my Windows VPS.
How do I need to configure my VPS for it and how do I need to configure the MySQL database?
Thanks in advance for your reply!
If you are looking to connect to a MySQL server that is located on a VPS or other type of dedicated server then you most likely need to open the ports on the server.
The default MySQL port is 3306 and a guide to opening ports on a server can be found here: https://www.solvps.com/blog/how-to-open-ports-on-windows-server-vps-or-dedicated-server/
To access MySQL databases outside your Windows VPS, you'll need to allow Remote Connection to MySQL Server. Probably, this tutorial should help you.
https://manage.accuwebhosting.com/knowledgebase/2200/How-to-Allow-Remote-Connection-to-MySQL-Server-in-Windows.html
Once MySQL server is configured for Remote Connections, open MySQL port 3306 from Windows firewall.

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.

How to fetch data from Amazon mysql database to localhost(xammp)?

I need to sync two websites. One is online and another is local. How can I fetch database data from Amazon server to localhost(xammp)?
MySQL server on your localhost can connect to Amazon mysql database if you have open port 3306 on Amazon server. You can setup replication between Amazon server and localhost for live sync.
Otherwise you can setup a script which copies the binary logs from Amazon server and applies them on localhost.

Pentaho Data Integration - MySQL Database connect with SSH

I'm trying to connect to a remote MySQL database with Pentaho Data Integration (JDBC Driver).
Therefore I need to build up a SSH connection.
Is it possible to do this inside/with the tool?
Guess I solved it:
I just had to build up a SSH Port Forwarding:
ssh -L 3306:localhost:3306 remote.url
There's no way to do this that I know of in PDI. But you wouldn't really want to. I would take the approach of configuring your MySQL client to use an encrypted connection, and then connect your JDBC driver to that.
Sorry, I don't do MySQL, so I don't know how to do that off the top of my head.
Brian