Getting Started with MySQL on Azure
Microsoft Learn

Getting Started with MySQL on Azure



Here is a quick set of screenshots that will help you get started with MySQL on Azure!

1) Search for Azure Database for MySQL in the Portal.

Azure Database for MySQL SKU

2) Choosing the correct service deployment options: Flexible server gives you a standalone / HA aware solution by itself, the second option is used for deploying a WordPress Site + MySQL Flexible server. I have chosen Flexible Server


MySQL Flexible Server

3) Choose your subscription and Resource group now and provide the server details in the following screenshots.

Subscription and Resource group


Server Details
Compute HA Tier

Note for the SKU I have chosen, requires a higher compute tier, hence this message. I have chosen not to use HA in this example.

Assign a User Assigned Managed Identity and Entra ID for high security and a backup mySQL username and password



Leave these blank and click Next


Server Creation Time

Finally,

Once the creation is done, you may user the following in CloudShell to connect to your db server

Code to connect:
mysql -h <yourservername>.mysql.database.azure.com -u <username> -p        

Next run the following commands in the MySQL shell prompt:

SELECT VERSION(); to get the version

SHOW DATABASES; to get the list of databases

The results can be seen below

MySQL Shell


Congrats!! You have just created your very first MySQL Database server on Azure!

Stay tuned for more tutorials...

#AzureDatabaseforMySQL #FlexibleServer #MySQL #MicrosoftAzure #Azure #MySQL #AzureSQL


要查看或添加评论,请登录

Anil Mahadev的更多文章

社区洞察

其他会员也浏览了