MySQL workbench database import from Azure SQL - mysql

I am currently trying to use the MySQL Workbench migration wizard to import a database located on an Azure SQL Managed instance to an on-premise MySQL server, but i have an issue with the wizard: it fails to retrieve the database schema with the following error:
'WARNING: The following catalogs were not found: database_name'
Note: The user i currently use to perform the migration is actually granted on VIEW DEFINITION at the database level but not at the server level (VIEW ANY DEFINITION) , since it is not supported in Azure SQL. Any idea about how to make this wizard work is welcomed.

Like #JeffRamos said before you using MySQL Workbench migration, please check if the user can connect to the Azure SQL Managed instance with SSMS and has the permission to access the Azure MI database. Just from the error message, it's not the firewall issue.
As I know about Azure Managed instance, if we want migrate the database, the user muse be db_owner or admin account.
HTH.

Related

How to sync MS SQL Server of Azure Portal with WordPress Database?

I want to establish 2 way sync between MS SQL Database with WordPress Mysql Database. I even tried to use Workbench or Microsoft SQL Server Migration Assistant for MySQL. But nothing worked. Every time i get some "Connection to MySQL Failed" Error.
I have even tried all option i have seen online but noting worked.
You have to tell us more about what you are trying to do.
As far as I can tell yo have 2 options:
Use PolyBase: Which is very impractical, close to retirement, lacking in documentation, and personally I wasn't able to install it not even once.
Use Linked Servers: As I posted in the reply you can follow the step by step guide and create a linked server to MySQL. From there you can query the linked server and eventually create a stored procedure that import/export data but forget about an on-time sync
Azure Data Factory: If you are on Azure SQL Database you can setup Azure Data Factory and create a pipeline for sync data. Or eventually use SSIS if you are on prem.

How to connect Azure Database for MySQL flexible server in Azure SQL Server Database

I am trying to set up a connection between Azure MySQL flexible server and Azure SQL database mainly to read data from MySQL and store it in the SQL Server periodically (multiple times a day).
I was thinking of creating a stored procedure inside my SQL Server database; however, I cannot seem to get a connection from the SQL Server into the MySQL database.
I know with ODBC you can connect MySQL to on-prem SQL Server, but unfortunately, there is nothing I have found for the same functionality for Azure SQL Server.
Has anyone done this? Is this possible?
I have tried to set up an ODBC connection, but it did not work as the SQL Server is on Azure.
I tried setting up a linked server inside SQL Server straight to MySQL, but it doesn't seem possible as the SQL Server is not on-prem.
I tried creating external database objects based on the following link.
With all these approaches, my expectation was to surface the MySQL tables from Azure SQL Server/SSMS.
Thank you for your help in advance!
MySql Workbench is the perfect option for connecting the azure database for mysql.
for that we need to create flexible server in azure portal. I created flexible server in azure portal.
Image for reference:
I created database in flexible server by clicking add in in database option. it crated successfully.
Image for refence:
I installed MySQL Workbench in my local system.
you can get your required fields to connect the server in connect tab.
Image for reference:
I connected to the server by filling required fields.
Image for reference:
Click on ok. It connected successfully.
Image for reference:
AFAIK Export the data from Azure mysql flexible server in the form of sql script through MySQL work bench and import that file in Azure sql database through SSMS. IN this we can write data into Azure Sql database.
I have had to create an Azure Function App that contains a Timer function that reads the data from the MySQL data and pushes it to SQL Server every 15 minutes (as were the requirements).
Thank you for everyone for commenting.
It seems you can use Data-in replication.

MySql workbanch migration wizard does not retrieve schema

I am trying to migrate from azure SQL to Google Cloud MySql using MySql Workbench migration wizard.
I am using the administrative user to connect to azure SQL.
The 'Fetch Schema List' finishes successfully with the message "Retrieve schema list from source finished" but no schema are available in the "Schema Selection" stage.
What am I doing wrong?
p.s.
The solution mentioned in Not retrieving schema list from source when migrating from MSSQL to MySQL using Workbench by #SaRiD does not solve the problem.

How to grant access on Azure Database for MySQL in the portal?

How can I grant permissions on Azure Database for MySQL in the portal to other user? I don't see 'Access Control (AIM)' for it anywhere.
Azure Database for MySQL is a fully managed database as a service in Azure. It is different from the SQL Database those will link a SQL server resource when you creating SQL database. For SQL Database, IAM is set at the server level, not at the individual database. Here is a similar reference for SQL database.
For Azure Database for MySQL, It seems there is no IAM setting in the portal.
If you want to control access for Azure Database for MySQL, you can use firewall and SSL. You can see Data access & security in the Azure Database for MySQL Documentation for more information.

Connect MS Excel and/or MS Access with AWS RDS

I have hired developers to make an app for me. The backend database is hosted on Amazon Web Service RDS. The server side language is PHP using Yii framework. originally when I awarded the work i asked the developers to make sure I could connect Excel and/or Access to the backend Database - AWS RDS in this case.
The developers are now telling me it is not possible to connect AWS RDS with MS Access. Instead they have asked me to install MYSQL workbench to connect with AWS RDS. That connection worked.
My question is: Is their statement true? is it not possible to use some sort of ODBC to allow MS Access to connect with AWS RDS. Can MS Access connect with AWS Dynamo DB? What if I switched to AWS hosted SQL Server?
Appreciate your help
Should be no problem with current AWS - RDS technology
Set up 'instance' of your RDB. We used MySQL
Configure your VPC to talk, outbound and inbound. See AWS docs
MySQL instance.
Install MySQL workbench to set up connection and try it out. See AWS docs
a. Create a table in MySQL Workbench to make sure things work.
b. Save the connection for reference, easy access and administration.
Install MySQL ODBC driver from: http://dev.mysql.com/downloads/connector/odbc/
Connect MS ACCESS to AWS hosted MySQL through ODBC driver
The Table created above in #3 should now be available
Finally
a. Connect EXCEL to AWS hosted MySQL through ODBC driver. Under 'Data' tab select "From Other Sources -> From Microsoft Query -> [select] 'New Data Source'"
b. Fill in the same parameters as above for "Create New Data Source" and your AWS data will flow right into your EXCEL spreadsheet.
As of 2018, setup steps are below:
click Excel Data tab on the top
Get Data From--choose From Other Source--From ODBC
Data source name--choose Amazon Redshift ODBC DSN (If not show up, install AWS driver)
expand Advance option--Connection string type your "driver={Amazon
Redshift (x64)};server.....
type in any SQL query--then click OK
type in aws workbench user name and password
a new sheet will be created with data
go to the table you want to paste the data, clear old data
click data tab, choose existing connection
paste query data to your desired excel cell
next time, just need to click Query Tab on the top, refresh
Not positive about connecting to Amazon's RDS system. But I do know that you can setup MS Access to connect to MySQL. It's a bit finicky to setup to start with, but I've had a client running things successfully with a MySQL DB, Yii frontend and MS Access accessing the DB for backend work.
Works great. We're on a stock HostGator account and it's working fine for us. The main wrinkles have been working out how to speed up queries between MS Access and the MySQL DB, as you can quickly end up trying to access huge amounts of data that MS Access then joins after pulling it over the wire, rather than before.