connecting to remote database using spoon over network - mysql

I have a job which has source connection as oracle on windows.
On Destination it should update a mysql database table on ubuntu linux server over ssh.
Is this possible to do?
In insert/update step is it possible to give connection type over ssh?
In need of help.

Target insert/update step works through JDBC connection. Therefore you need to open port on MySQL DB to be able to connect to DB.

You can open a connection via Putty and use 127.0.0.1 in the jdbc connector to connect to your DB via the tunnel opened by your putty session.

Related

Mysql Server Connect Issue in SQLYOG

is there any way to connect to a remote database by using SQLyog? I have the ip address, user name and password of the database. However, I have 'Error 2003 - Can't connect to MySQL server on '[myIpAddress]' (10035) whenever I test connection in SQLyog.
Need to use both ssh connection and mysql server connection for establishment of successful connection.
You need to add % wild card in your cpanel to enable mysql remote connection, if you cannot do this, you can use SSH tunnel to connect to database, Please check the following screenshot

Workbench migration via ssh - how to set up a tunnel

I try to migrate MSSQL (local machine) to MYSQL (Amazon Web Services) usin Workbench. I can connect to both databases. However when I migrate I get this error:
Mysql connections through SSH are not supported in this version...
Well, I found this in documentation:
A workaround is to set up an encrypted tunnel, and then treat the MySQL target as a standard TCP (unencrypted) connection.
But I don't know how to set up a tunnel. Does anyone can help?
Okay, if I'm understanding this correctly, I think I'd prefer to set up a tunnel in Putty. I don't have a solid grasp of how MySQL Workbench works (I'm assuming its analogous to SSMS), but I have used maaany SSH tunnels in my day. Here are some basic instructions:
http://www.electrictoolbox.com/putty-create-ssh-port-tunnel/
You'll want to create a local tunnel from any port you choose (although I'd go with the MySQL default 3306) to the destination of 127.0.0.1:3306. Be sure to click add and save your session settings in Putty.
Open the SSH connection to the AWS machine. Try to connect to your MySQL instance through 127.0.0.1:3306. This should allow you to pull from your local SQL Server and send data to your AWS instance (through the tunnel, 127.0.0.1:3306 of course).
Hope this helps. Let me know if this doesn't solve your issue.
If you have Amazon ec2:
On Windows machine connect using putty via ssh:
In session host name (user#public_ip_address)
Connection -> SSH -> Tunnels (Source port: 3306 OR choose free one) AND (Destination 127.0.0.1:3306)
You can check if tunnel was establihed in event log (right click on terminal bar)
In Workbench now you can use TCP/IP without SSH.
Thanks guys!

Ole db connector for Mysql

I have remote machine with ip 192.X.X.X and am connecting it using putty(SSH) after login i was connecting to mysql using local host 127.0.0.1 and its working fine.
I was also able to mysql using mysql work bench using the option standard tcp/ip over SSH
currently am using SSIS 2012 is there any way we can connect to this mysql(which is in remote machine) using any connector..I tried oledb and odbc but not able to connect
Can any one help me on this...
Thanks in advance...
Here is how to connect to a mysql database (on a different server) for use with an SSIS 2012 package using an SSH session.
First, install the mysql drivers if not already. They can be found here:
mysql official drivers
Set up your SSH session.
Set up port forwarding. Either do a remote forward (Set local_port: 3306, remote_host: yourmysqlservername_or_ip, remote_port: 3306 ) or a local forward (Set port: 3306, host: localhost, remote port: 3306).
Log in to your server with the SSH session you just created.
The preceding 3 steps taken from this link about using SSH with mySQL
Next, you will set up a data source (system DSN) from within the ODBC data source administrator (Installed along with the drivers hopefully, example shown in the following link). This data source is what will then show up in your Connection manager list in SSIS. During this setup, you will put in 'localhost' as the server name rather than the actual server name, since you are using an SSH session and port forwarding.
Example DSN sestup
Finally, when you create a new connection in your SSIS package, choose an odbc connection and the data source name you just set up should show up in the list of data source names.

Manipulating a MySQL database via MS Access over an SSH connection (PuTTY)

I use PuTTY to access a remote MySQL database via 'ssh' and then use mysql through PuTTY.
Is there any way I could open the same in Microsoft Access database manager and append data to the MySQL table(s) remotely?
I have an Excel file and I want to insert its contents to the MySQL db and it would be very tiresome through putty command line.
Just install the MySQL ODBC driver on your PC: http://dev.mysql.com/downloads/connector/odbc/
Then you can link your MySQL tables to your Access database and use them directly.
In linux server access db in local m/c to set tunnel address for putty .

Connect to remote MySQL DB (Linux) from Windows using MySQL Workbench. Remote DB Connection requires local Socket

The Linux Server only allows connection over it's local socket.
--socket=/tmp/mysql5.sock
I want to connect to the Database using MySQL Workbench, but don't know how to specify the socket path there.
Using the Standard TCP/IP over SSH connection I'm providing the SSH connection parameters, Databasename, username, etc.
Any help is greatly appreciated.
Try setting up an SSH tunnel to the machine:
http://realprogrammers.com/how_to/set_up_an_ssh_tunnel_with_putty.html
PuTTY is what I use on Windows when I need to SSH anywhere. The instructions are fairly thorough.