Azure

2 Mins Read

How to Migrate MySQL Server from On-premises to Azure using MySQL Workbench

Voiced by Amazon Polly

Introduction

Migrating on-premises databases to cloud platforms like Microsoft Azure has become a crucial undertaking as businesses shift more and more of their infrastructure to the cloud. Azure provides a completely managed database solution that streamlines scalability, maintenance, and operations with its Azure Database for MySQL service.

MySQL Workbench, a well-liked database administration tool, is one way to migrate MySQL databases from an on-premises system to Azure. MySQL Workbench is a useful tool for small- to medium-sized database migrations since it has a graphical user interface that makes database export and import efficient.

Steps to Perform Migration using MySQL Workbench

  1. Configure MySQL server in Azure.
  • Open the Azure Portal.
  • Look for Azure Database for MySQL and start a new MySQL server.
  • Configure the networking, compute size, and server version (don’t forget to set up firewall rules and select public access).
  • To use as the target, create a database on the MySQL server.
  • Configure the source and target Server parameters.
  1. Set-up Azure MySQL Security
  • Go to the Connection security settings for your MySQL server in the Azure portal.
  • To grant access to the database, add your local machine’s public IP address to the Firewall rules.
  1. Launch Workbench for MySQL
  • To establish a new connection to your on-premises MySQL database, launch MySQL Workbench.
  • Verify that you can access the database you wish to migrate and that the connection is functioning properly.
  1. Dump the On-Premises MySQL Database
  • Right-click the database you want to migrate to MySQL Workbench.
  • Click the context menu and choose Data Export.
  • Select the tables and database to export.
  • Select Export to Self-Contained File (to create a SQL dump file, for example)
  1. Import MySQL into Azure
  • For your Azure Database on a MySQL server, create a new connection in MySQL Workbench.
  • Utilize the server information from the Azure site, which includes the fully qualified domain name, login, and password.
  1. Examine the Migration
  • Verify that all of the tables, data, and schema have been appropriately imported by looking through the Azure MySQL database once the import process is finished.
  • To confirm that the data has been correctly transferred and is intact, you can run a few example queries.
  1. Modify the Connection Strings for the Application
  • In your application, change the connection strings to link to the newly created Azure MySQL server. The fully qualified domain name (FQDN) and connection credentials for the Azure server must be used.

Become an Azure Expert in Just 2 Months with Industry-Certified Trainers

  • Career-Boosting Skills
  • Hands-on Labs
  • Flexible Learning
Enroll Now

Conclusion

Modernizing your database architecture is practical and effective when you use MySQL Workbench to migrate your MySQL databases from an on-premises environment to Azure. By using Azure’s strong features such as scalability, high availability, and managed services you can take advantage of this process and lessen the burden of hardware administration.
This method is suitable for Smaller databases or situations where a manual, hands-on approach is appropriate are most suited for this method. Additional tools like Azure Database Migration Service (DMS) could be required to speed up the process for more complicated migrations or larger datasets.

Access to Unlimited* Azure Trainings at the cost of 2 with Azure Mastery Pass

  • Microsoft Certified Instructor
  • Hands-on Labs
  • EMI starting @ INR 4999*
Subscribe Now

About CloudThat

CloudThat is a leading provider of Cloud Training and Consulting services with a global presence in India, the USA, Asia, Europe, and Africa. Specializing in AWS, Microsoft Azure, GCP, VMware, Databricks, and more, the company serves mid-market and enterprise clients, offering comprehensive expertise in Cloud Migration, Data Platforms, DevOps, IoT, AI/ML, and more.

CloudThat is the first Indian Company to win the prestigious Microsoft Partner 2024 Award and is recognized as a top-tier partner with AWS and Microsoft, including the prestigious ‘Think Big’ partner award from AWS and the Microsoft Superstars FY 2023 award in Asia & India. Having trained 650k+ professionals in 500+ cloud certifications and completed 300+ consulting projects globally, CloudThat is an official AWS Advanced Consulting Partner, Microsoft Gold Partner, AWS Training PartnerAWS Migration PartnerAWS Data and Analytics PartnerAWS DevOps Competency PartnerAWS GenAI Competency PartnerAmazon QuickSight Service Delivery PartnerAmazon EKS Service Delivery Partner AWS Microsoft Workload PartnersAmazon EC2 Service Delivery PartnerAmazon ECS Service Delivery PartnerAWS Glue Service Delivery PartnerAmazon Redshift Service Delivery PartnerAWS Control Tower Service Delivery PartnerAWS WAF Service Delivery Partner and many more.

To get started, go through our Consultancy page and Managed Services PackageCloudThat’s offerings.

WRITTEN BY Sangeetha S

Share

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!