You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "Quickstart: Create a flexible server by using the Azure portal"
2
+
title: "Quickstart: Create a flexible server using the Azure portal"
3
3
description: In this quickstart, learn how to deploy a database in an instance of Azure Database for MySQL - Flexible Server by using the Azure portal.
4
4
author: shreyaaithal
5
5
ms.author: shaithal
6
6
ms.reviewer: maghan
7
-
ms.date: 06/18/2024
8
-
ms.service: mysql
7
+
ms.date: 07/31/2024
8
+
ms.service: azure-database-mysql
9
9
ms.subservice: flexible-server
10
10
ms.topic: quickstart
11
11
ms.custom:
12
12
- mvc
13
13
- mode-ui
14
14
---
15
15
16
-
# Quickstart: Create an instance of Azure Database for MySQL - Flexible Server by using the Azure portal
16
+
# Quickstart: Create an instance of Azure Database for MySQL with the Azure portal
Azure Database for MySQL - Flexible Server is a managed service that you can use to run, manage, and scale highly available MySQL servers in the cloud. This quickstart shows you how to create an Azure Database for MySQL flexible server by using the Azure portal.
20
+
Azure Database for MySQL is a managed service for running, managing, and scaling highly available MySQL servers in the cloud. This article shows you how to use the Azure portal to create an Azure Database for MySQL flexible server instance. You create an instance of Azure Database for MySQL flexible server using a defined set of [compute and storage resources](./concepts-compute-storage.md).
21
21
22
-
If you don't have an Azure subscription, create a [free Azure account](https://azure.microsoft.com/free/) before you begin.
- Basic knowledge of Azure Database for MySQL flexible server deployment options and configurations
23
27
24
28
## Sign in to the Azure portal
25
29
26
-
In the [Azure portal](https://portal.azure.com), enter your credentials to sign in to the portal. The default view is your service dashboard.
30
+
Enter your credentials to sign in to the [Azure portal](https://portal.azure.com).
27
31
28
32
## Create an Azure Database for MySQL flexible server
29
33
30
-
You create an instance of Azure Database for MySQL - Flexible Server by using a defined set of [compute and storage resources](./concepts-compute-storage.md) to create a flexible server. Create the server within an [Azure resource group](../../azure-resource-manager/management/overview.md).
34
+
Create the server within an [Azure resource group](../../azure-resource-manager/management/overview.md).
31
35
32
36
Complete these steps to create an Azure Database for MySQL flexible server:
33
37
34
-
1. In the Azure portal, search for and then select **Azure Database for MySQL servers**:
38
+
1. In the Azure portal, search for and then select **Azure Database for MySQL flexible servers**.
35
39
36
-
:::image type="content" source="./media/quickstart-create-server-portal/find-mysql-portal.png" alt-text="Screenshot that shows a search for Azure Database for MySQL servers.":::
40
+
:::image type="content" source="media/quickstart-create-server-portal/find-mysql-portal.png" alt-text="Screenshot that shows a search for Azure Database for MySQL servers.":::
37
41
38
42
1. Select **Create**.
39
43
40
44
1. On the **Select Azure Database for MySQL deployment option** pane, select **Flexible server** as the deployment option:
41
45
42
-
:::image type="content" source="./media/quickstart-create-server-portal/azure-mysql-deployment-option.png" alt-text="Screenshot that shows the Flexible server option.":::
46
+
:::image type="content" source="media/quickstart-create-server-portal/azure-mysql-deployment-option.png" alt-text="Screenshot that shows the Flexible server option." lightbox="media/quickstart-create-server-portal/azure-mysql-deployment-option.png":::
43
47
44
48
1. On the **Basics** tab, enter or select the following information:
45
49
46
-
|Setting|Suggested value|Description|
47
-
|---|---|---|
48
-
|**Subscription**|Your subscription name|The Azure subscription that you want to use for your server. If you have multiple subscriptions, choose the subscription in which you want to be billed for the resource.|
49
-
|**Resource group**|**myresourcegroup**| Create a new resource group name, or select an existing resource group from your subscription.|
50
-
|**Server name**|**mydemoserver**|A unique name that identifies your instance of Azure Database for MySQL - Flexible Server. The domain name `mysql.database.azure.com` is appended to the server name that you enter. The server name can contain only lowercase letters, numbers, and the hyphen (`-`) character. It must contain between 3 and 63 characters.|
51
-
|**Region**|The region closest to your users| The location that's closest to your users.|
52
-
|**Workload type**| Development|For production workload, you can select **Small/Medium-size** or **Large-size** depending on [max_connections](concepts-server-parameters.md#max_connections) requirements|
53
-
|**Availability zone**| No preference | If your application client is provisioned in a specific availability zone, you can set your Azure Database for MySQL flexible server to the same availability zone to colocate the application and reduce network latency.|
54
-
|**High availability**| Cleared | For production servers, choose between [zone-redundant high availability](concepts-high-availability.md#zone-redundant-ha-architecture) and [same-zone high availability](concepts-high-availability.md#same-zone-ha-architecture). We recommend that you use high availability for business continuity and protection against virtual machine (VM) failure.|
55
-
|**Standby availability zone**| No preference| Choose the standby server zone location. Colocate the server with the application standby server in case a zone failure occurs. |
56
-
|**MySQL version**|**5.7**| A major version of MySQL.|
57
-
|**Admin username**|**mydemouser**| Your own sign-in account to use when you connect to the server. The admin username can't be **azure_superuser**, **admin**, **administrator**, **root**, **guest**, **sa**, or **public**. The maximum number of characters that are allowed is 32. |
58
-
|**Password**|Your password| A new password for the server admin account. It must contain between 8 and 128 characters. It also must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers (0 through 9), and nonalphanumeric characters (`!`, `$`, `#`, `%`, and so on).|
59
-
|**Compute + storage**|**Burstable**, **Standard_B1ms**, **10 GiB**, **100 iops**, **7 days**| The compute, storage, input/output operations per second (IOPS), and backup configurations for your new server. On the **Configure server** pane, the default values for **Compute tier**, **Compute size**, **Storage size**, **iops**, and **Retention period** (for backup) are **Burstable**, **Standard_B1ms**, **10 GiB**, **100 iops**, and **7 days**. You can keep the default values or modify these values. For faster data loads during migration, we recommend that you increase IOPS to the maximum size that's supported for the compute size that you selected. Later, scale it back to minimize cost. To save the compute and storage selection, select **Save** to continue with the configuration. <!-- The following screenshot shows compute and storage options. -->|
50
+
|Setting|Suggested value|Description|
51
+
|---|---|---|
52
+
|**Subscription**|Your subscription name|The Azure subscription you want to use for your server. Choose the subscription for which you want to be billed for the resource if you have multiple subscriptions. |
53
+
|**Resource group**|*myresourcegroup*| Create a new resource group name, or select an existing resource group from your subscription.|
54
+
|**Server name**|*mydemoserver-quickstart*|A unique name that identifies your instance of Azure Database for MySQL - Flexible Server. The domain name `mysql.database.azure.com` is appended to the server name you enter. The server name can contain only lowercase letters, numbers, and the hyphen (`-`) character. It must contain between 3 and 63 characters.|
55
+
|**Region**|The region closest to your users| The location closest to your users.|
56
+
|**MySQL version**| 8.0|The major engine version. |
57
+
|**Workload type**| Development | For production workload, you can select **Small/Medium-size** or **Large-size** depending on [max_connections](concepts-server-parameters.md#max_connections) requirements |
58
+
|**Compute + storage**|**Burstable**, **Standard_B1ms**, **10 GiB**, **100 iops**, **7 days**| The compute, storage, input/output operations per second (IOPS), and backup configurations for your new server. On the **Configure server** pane, the default values for **Compute tier**, **Compute size**, **Storage size**, **iops**, and **Retention period** (for backup) are **Burstable**, **Standard_B1ms**, **10 GiB**, **100 iops**, and **7 days**. You can keep the default values or modify these values. For faster data loads during migration, we recommend increasing IOPS to the maximum size supported for the compute size you selected. Later, scale it back to minimize cost. To save the compute and storage selection, select **Save** to continue with the configuration. |
59
+
|**Availability zone**| No preference| If your application client is provisioned in a specific availability zone, you can set your Azure Database for MySQL flexible server to the same availability zone to colocate the application and reduce network latency. |
60
+
|**High availability**| Cleared | For production servers, choose between [zone-redundant high availability](concepts-high-availability.md#zone-redundant-ha-architecture) and [same-zone high availability](concepts-high-availability.md#same-zone-ha-architecture). We recommend high availability for business continuity and protection against virtual machine (VM) failure. |
61
+
|**Authentication method**|**MySQL and Microsoft Entra authentication**| Select the authentication methods you would like to support for accessing this MySQL server. |
62
+
|**Admin username**|**mydemouser**| Your sign-in account is to be used when you connect to the server. The admin username can't be **azure_superuser**, **admin**, **administrator**, **root**, **guest**, **sa**, or **public**. The maximum number of characters that are allowed is 32. |
63
+
|**Password**|Your password | A new password for the server admin account. It must contain between 8 and 128 characters. It also must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers (0 through 9), and nonalphanumeric characters (`!`, `$`, `#`, `%`, and so on). |
60
64
61
65
1. Next, configure networking options.
62
66
@@ -65,51 +69,48 @@ Complete these steps to create an Azure Database for MySQL flexible server:
65
69
- Public access (allowed IP addresses)
66
70
- Private access (virtual network integration)
67
71
68
-
When you use public access, access to your server is limited to the allowed IP addresses that you add to a firewall rule. Using this method prevents external applications and tools from connecting to the server and any databases on the server, unless you create a rule to open the firewall for a specific IP address or range of IP addresses. When you select **Create an azuredeploy.json file**, access to your server is limited to your virtual network. For more information about private access, see the [concepts](./concepts-networking.md) article.
72
+
When you use public access, access to your server is limited to the allowed IP addresses you add to a firewall rule. This method prevents external applications and tools from connecting to the server and any databases on the server unless you create a rule to open the firewall for a specific IP address or range of IP addresses. When you select **Create an azuredeploy.json file**, access to your server is limited to your virtual network. For more information about private access, see the [concepts](./concepts-networking.md) article.
69
73
70
74
In this quickstart, you learn how to set public access to connect to the server. On the **Networking tab**, for **Connectivity method**, select **Public access**. To set firewall rules, select **Add current client IP address**.
71
75
72
-
> [!NOTE]
73
-
> You can't change the connectivity method after you create the server. For example, if you select **Public access (allowed IP addresses)** when you create the server, you can't change the setting to **Private access (VNet Integration)** after the server is deployed. We highly recommend that you create your server to use private access to help secure access to your server via virtual network integration. For more information about private access, see the [concepts](./concepts-networking.md) article.
74
-
>
75
-
> :::image type="content" source="./media/quickstart-create-server-portal/networking.png" alt-text="Screenshot that shows the Networking tab.":::
76
-
>
76
+
You can't change the connectivity method after you create the server. For example, if you select **Public access (allowed IP addresses)** when you create the server, you can't change the setting to **Private access (VNet Integration)** after the server is deployed. We highly recommend that you create your server to use private access to help secure access to your server via virtual network integration. For more information about private access, see the [concepts](./concepts-networking.md) article.
77
+
78
+
:::image type="content" source="media/quickstart-create-server-portal/networking.png" alt-text="Screenshot that shows the Networking tab.":::
77
79
78
80
1. Select **Review + create** to review your Azure Database for MySQL flexible server configuration.
79
81
80
82
1. Select **Create** to provision the server. Provisioning might take a few minutes.
81
83
82
-
1.On the toolbar, select **Notifications** (the bell icon) to monitor the deployment process. When deployment is finished, you can select **Pin to dashboard** to create a tile for the Azure Database for MySQL flexible server on your Azure portal dashboard. This tile is a shortcut to the server's **Overview** pane. When you select **Go to resource**, the **Overview** pane for the flexible server opens.
84
+
1. select **Notifications** (the bell icon) on the toolbar to monitor the deployment process. After deployment, you can select **Pin to dashboard** to create a tile for the Azure Database for MySQL flexible server on your Azure portal dashboard. This tile is a shortcut to the server's **Overview** pane. When you select **Go to resource**, the **Overview** pane for the flexible server opens.
83
85
84
-
By default, these databases are created under your server: **information_schema**, **mysql**, **performance_schema**, and **sys**.
86
+
These databases are created by default under your server: **information_schema**, **mysql**, **performance_schema**, and **sys**.
85
87
86
-
> [!NOTE]
87
-
> To avoid connectivity problems, check whether your network allows outbound traffic through port 3306, the port that Azure Database for MySQL - Flexible Server uses.
88
+
> [!NOTE]
89
+
> To avoid connectivity problems, check whether your network allows outbound traffic through port 3306, which Azure Database for MySQL - Flexible Server uses.
88
90
89
91
## Connect to the server
90
92
91
-
Before you get started, download the [public SSL certificate](https://dl.cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem) to use for certificate authority verification.
93
+
Before you start, download the [public SSL certificate](https://dl.cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem) for certificate authority verification.
92
94
93
-
If you deploy Azure Database for MySQL - Flexible Server by using the public access connectivity method, you can get started quickly by using the built-in MySQL command-line client tool or Azure Cloud Shell. To use the command-line tool, on the menu bar on the **Overview** pane, select **Connect**.
95
+
If you deploy Azure Database for MySQL using the public access connectivity method, you can get started quickly by using the built-in MySQL command-line client tool or Azure Cloud Shell. To use the command-line tool, on the menu bar in the Overview pane, select Connect.
94
96
95
-
:::image type="content" source="./media/quickstart-create-server-portal/connect-on-overview.png" alt-text="Screenshot that how to connect with Azure Cloud Shell.":::
97
+
> [!NOTE]
98
+
> You can also use the [MySQL extension](/azure-data-studio/extensions/mysql-extension) in Azure Data Studio to connect to your Azure Database for MySQL flexible server.
96
99
97
-
After you select **Connect**, you can see details about how to connect locally by using the Azure Database for MySQL - Flexible Server client tool and how to initiate data import and export operations.
100
+
:::image type="content" source="media/quickstart-create-server-portal/connect-on-overview.png" alt-text="Screenshot that shows how to connect with Azure Cloud Shell.":::
98
101
99
-
:::image type="content" source="./media/quickstart-create-server-portal/connect-mysql-flexible-server.png" alt-text="Screenshot that shows the Connect pane.":::
102
+
After you select **Connect**, you can see details about connecting locally using the Azure Database for MySQL - Flexible Server client tool and how to initiate data import and export operations.
100
103
101
-
> [!IMPORTANT]
104
+
> [!IMPORTANT]
102
105
> If you see the following error message when you connect to your Azure Database for MySQL flexible server, either you didn't select the **Allow public access from any Azure service within Azure to this server** checkbox when you set up your firewall rules, or the option isn't saved. Set the firewall rules, and then try again.
103
-
>
106
+
>
104
107
> `ERROR 2002 (HY000): Can't connect to MySQL server on <servername> (115)`
105
108
106
109
## Clean up resources
107
110
108
-
When you no longer need the resources that you created to use in this quickstart, you can delete the resource group that contains the Azure Database for MySQL - Flexible Server instance. Select the resource group for the Azure Database for MySQL - Flexible Server resource, and then select **Delete**. Enter the name of the resource group that you want to delete.
109
-
110
-
## Next step
111
+
When you no longer need the resources you created for this quickstart, you can delete the resource group that contains the Azure Database for MySQL flexible server instance. Select the resource group for the Azure Database for MySQL resource, and then select **Delete**. Enter the name of the resource group that you want to delete.
111
112
112
-
To learn about other ways to deploy a flexible server, go to the next quickstart. You also can learn how to [build a PHP (Laravel) web app by using MySQL](tutorial-php-database-app.md).
113
+
## Related content
113
114
114
-
> [!div class="nextstepaction"]
115
-
> [Connect to an instance of Azure Database for MySQL - Flexible Server in a virtual network](./quickstart-create-connect-server-vnet.md)
115
+
-[Connect to an instance of Azure Database for MySQL - Flexible Server in a virtual network](./quickstart-create-connect-server-vnet.md)
116
+
-[Azure Database for MySQL learning path on Microsoft Learn](/training/paths/introduction-to-azure-database-for-mysql/)
0 commit comments