Connection from MySQL to remote DB - possible? - mysql

is it possible to create a connection from a MySQL DB to a remote database (probably Oracle) using something like an ODBC/JDBC connector? I need to create a trigger on the MySQL side that performs an insert/update on a table in the remote DB.
Can MySQL act as a client in this way?
Thanks
Craig

I am certain that you can connect to MySql from Oracle, not that I have done it myself, but I am not sure if it can be done the other way round.
If a connection from Oracle to MySql can solve your problem then have a search for 'Oracle Database Heterogeneous Connectivity'

Related

Create different mysql connections using Navicat

I have many db's from customers and many own db's, all of them in mysql and I'd like to have different mysql connections (Customers, Own).
My trouble is I can't. When I create a second mysql connection, is taking all db I got in my localhost.
Any advice?
Thanks
I haven't tried Navicat but I have been using SQLyog, where you can have separate connection for each database.
In SQLYog while creating new connection it ask me for database also, along with other details such as username,password etc.

Linked server in MySQL Workbench

I am working with MySQL Workbench and I want to query 2 servers at the same time. I searched and find out that the best way to proceed is to create a linked server.
I am wondering is it possible to create this only using workbench or MySQL server in general ?
There's nothing in MySQL Workbench that lets you send a query to more than one server at a time.

How to access remote MicroSoft SQL Server database from a stored procedure in MySQL

I need to access a remote Microsoft SQL Server database from a stored procedure in MySQL database.
I googled and found that there is a way to access a remote MySQL using federated tables. But I couldn't find anyway to do access MS SQL Server. My exact requirement is, I need to write a stored procedure which can duplicate all the tables and data from a remote MS SQL server database to a local MYSQL database.
Please help..
In short this cannot be done with MySQL federated engine. However you can setup a link from the remote MSSQL server to a MySQL table using the linked server feature of the MSSQL server.
If you can set this up you can have a scheduled job populate the MySQL tables from the MSSQL server side.
I have done the above setup and it is not to difficult.
I would also investigate some ETL tool to do this as it sounds like a ETL job and not something you want to run via stored procedures.
Good Luck.

Access MSSQL Db from MYSQL

I have recently read a MYSQL DB in MSSQL via creating a linked server. Does it work the other way round? I need to read MSSQL DB from MySQL.
Any Idea ?
you need to create an odbc connection: http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-examples-tools-with-access.html

DB in MySQL migrate to Oracle DB

I need to migrate some tables in mysql db to oracle db.
Do you now any tutorial to learn about this migration?
Thanks
You can connect to the MySQL instance from Oracle using Oracle's database link - this link details making the connection from Oracle to MySQL.
Bearing in mind that the MySQL account you use to create the connection will determine access to MySQL data, once the link is created you can work within Oracle to select data from the MySQL tables into the Oracle tables without a need for scripts and such.
Find an ETL tool like Informatica or SSIS to help you. Oracle's Migration Workbench might be the perfect choice, since you're already using Oracle.