Using federated tables to connect MySQL to MSSQL - mysql

Can I use federated tables to make the integration of mysql and mssql ?
I tried and it worked mysql to mysql , but if I try to connect to mssql , do not work.
Thank You.

As per MySQL 5.7 Reference Manual - 15.8.1 FEDERATED Storage Engine Overview:
The local server communicates with the remote server using MySQL client C API functions.
... which, naturally, can only connect to mysqld.
MySQL Workbench - Database Migration: Microsoft SQL Server to MySQL gives an overview of options to transfer data between mssql and mysql. They can be summarized as:
Access mysql from mssql through ODBC by adding the former as a "linked server"
Transfer data between the two (either direction) with IDEs (by hand, i.e. one-time)
Transfer data between the two (either direction) with a program that can access both, possibly including data conversion

Related

AWS RDS - MySQL to SQL Server Linked Server - How To / Alternatives

Situation:
I have a MySQL database and SQL Server database, both in AWS RDS. SQL Server is 2016. I need to be able to select data from the MySQL db (in SQL Server). Before moving to RDS, I was able to accomplish this by creating a Linked Server in SQL Server using the MySQL Connector/ODBC.
My understanding is that ODBC driver must be installed/setup on the SQL Server (box), which isn't possible with RDS.
I looked at CLR, but not sure if that will be a viable route either (from reading online) with RDS (?).
Any ideas/experience on how I can select data from the MySQL database in SQL Server when both databases are housed in RDS? The solution doesn't need to be high speed and probably only needs to be used 100 to 200 times.
Only thing I can think of is to create a cache table in SQL, use my application layer to copy the MySQL data to the SQL cache table, and then use that cache table instead of MySQL directly.
Thanks!

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.

Migrating a wordpress site from azure sql to Mysql

I need to migrate a mysql db including data from ms azure to my regular hosting provider. I already have an empty db waiting there.
The db contains a wordpress+woocommerce and various plugin tables.
Plz help..
Everywhere i find migrating from Mysql to sql but not Sql to Mysql
You should try MySQL Workbench which can easily do a migration from SQL Server (and Azure DB) to MySQL. The migration can be on the fly or it can result in some .sql scripts that you have to load in you MySQL database using your regular client (phpMyAdmin, EMMA or of course, MySQL Workbench).
You can find additional information about the migration capabilities of MySQL Workbench here.

Is it possible to Connecting MYsql with sql server?

I am using an open source software which support mysql and i create application that uses asp.net 4.0 and sql server 2008....
Is it possible to Connecting MYsql with sql server ?
I want every insertion and updating should be made to both database servers as they have same schema of tables but one is mysql and other is sql server 2008 ?
kindly explain step by step if possible
hope this will help,this shows step by step connection
http://www.codeproject.com/Articles/29106/Migrate-MySQL-to-Microsoft-SQL-Server
You can use linked server in MS SQL Server.
From the documentation - A linked server allows for access to distributed, heterogeneous queries against OLE DB data sources.
Have a look at sp_addlinkedserver function.

Connect TO Sql Server From MySQL

How can I connect to a SQL Server Database from a MySQL Server? I need to use the MySQL as a proxy DB (querying all the SQL servers and MySQL connected to it).
I need a functionality sort of "linked server" one on SQL server.
You can't - the closest MySQL has is the FEDERATED engine, but it only supports connecting to other MySQL instances, not any other database vendor.
Only SQL Server's Linked Server and Oracle's Database Link technology support connecting to other database vendors (that I'm aware of), so you'd have to use SQL Server as the proxy to MySQL -- not the other way around.