liveBook · Manning

Azure Database for MySQL

As explained in Microsoft Azure in Action

Azure Database for MySQL is a fully managed relational database service that runs the open-source MySQL database system on Microsoft Azure.

Azure Database for MySQL runs the open-source MySQL database system as a fully managed Azure service. It offers automatic backups, scalability, and security features while retaining the MySQL wire protocol. If an application and its tools already use MySQL, that compatibility makes moving to a managed service appealing. section 10.3.2

Check the trade-offs before choosing it:

  • Performance: MySQL can handle high traffic and supports JSON data, but optimal performance may require manual tuning; complex queries can be slower than on some alternatives. section 10.3.2
  • Cost: It is generally less expensive than Azure SQL Database, but the compute tier matters. Storage, backup storage, and network traffic can add to the bill. section 10.3.2
  • Recovery and security: Automatic backups and security features help, but out-of-the-box disaster recovery is limited, and some security features are less robust than those of Azure SQL Database. section 10.3.2

Choosing a database for an online bookstore

A bookstore with existing MySQL applications might favor compatibility and a lower starting cost. If its priorities instead put greater weight on disaster recovery, security, and peak-period performance, Azure SQL Database may be the better choice. section 10.3.4 section 10.3.2

C:/> az mysql flexible-server create --name BanningBooksMySQLServer 
--resource-group BanningRG --location australiaeast --admin-user adminuser 
--admin-password <your_password> --sku-name Standard_B1s 
--storage-size 100 --version 8.0.21

The Azure CLI example creates a MySQL flexible server with a resource group, location, administrator credentials, compute SKU, storage size, and MySQL version. Flexible server also supports starting and stopping the server. section 10.3.2

How Microsoft Azure in Action covers it

How deep it goes
Explains managed-service benefits and selection trade-offs, then shows server creation without developing a complete application workflow.
Examples
Uses an online bookstore’s database decision and an Azure CLI flexible-server creation command.
What it assumes
Introduces the managed service in plain terms while using existing MySQL applications and tools as the main compatibility scenario.
What you can do after
Apply it via Azure CLI to create a flexible server and evaluate its fit against cost, performance, recovery, and security needs.
How it connects
Connects MySQL wire protocol and flexible server to backups, scaling, disaster recovery, and Azure SQL Database comparisons.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microsoft Azure in Action. The section links point to the parts of the book it draws on.