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
Azure Database for MySQL flexible server is a fully managed service powered by the community version of MySQL. The MySQL experience in a managed service environment might differ from running MySQL in your own environment. In this article, you'll see some of the common errors users might encounter while migrating to or developing on Azure Database for MySQL flexible server for the first time.
The MySQL Community Edition manages connections using one thread per connection. As a result, each user connection gets a dedicated operating system thread in the mysqld process.
Azure Database for MySQL flexible server provides a range of metrics that you can use to identify resource bottlenecks and performance issues on the server. To determine whether your server is experiencing high CPU utilization, monitor metrics such as “Host CPU percent”, “Total Connections”, “Host Memory Percent”, and “IO Percent”. At times, viewing a combination of these metrics will provide insights into what might be causing the increased CPU utilization on your Azure Database for MySQL flexible server instance.
To help ensure that an Azure Database for MySQL flexible server instance performs optimally, it's very important to have the appropriate memory allocation and utilization. By default, when you create an instance of Azure Database for MySQL flexible server, the available physical memory is dependent on the tier and size you select for your workload. In addition, memory is allocated for buffers and caches to improve database operations. For more information, see [How MySQL Uses Memory](https://dev.mysql.com/doc/refman/5.7/en/memory-use.html).
Query performance can be impacted by multiple factors, so it’s first important to look at the scope of the symptoms you’re experiencing in your Azure Database for MySQL flexible server instance. For example, is query performance slow for:
**EXPLAIN** is a handy tool that can help you optimize queries. You can use an EXPLAIN statement to get information about how SQL statements are run. The following shows example output from running an EXPLAIN statement.
The MySQL performance_schema, first available in MySQL 5.5, provides instrumentation for many vital server resources such as memory allocation, stored programs, metadata locking, etc. However, the performance_schema contains more than 80 tables, and getting the necessary information often requires joining tables within the performance_schema, and tables from the information_schema. Building on both performance_schema and information_schema, the sys_schema provides a powerful collection of [user-friendly views](https://dev.mysql.com/doc/refman/5.7/en/sys-schema-views.html) in a read-only database and is fully enabled in Azure Database for MySQL flexible server version 5.7.
To broadly support your Azure Database for MySQL flexible server solution, you can choose from a wide variety of industry-leading partners and tools. This article highlights Microsoft partners with migration solutions that support Azure Database for MySQL flexible server.
Copy file name to clipboardExpand all lines: articles/mysql/flexible-server/quickstart-create-connect-server-vnet.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,23 +71,23 @@ Since the server is in a virtual network, you can only connect to the server fro
71
71
1. Select **Ubuntu Server 18.04 LTS**
72
72
1. In the **Basics** tab, under **Project details**, make sure the correct subscription is selected and then choose to **Create new** resource group. Type *myResourceGroup* for the name.
73
73
74
-
> :::image type="content" source="../../virtual-machines/linux/media/quick-create-portal/project-details.png" alt-text="Screenshot of the Project details section showing where you select the Azure subscription and the resource group for the virtual machine." lightbox="../../virtual-machines/linux/media/quick-create-portal/project-details.png":::
74
+
> :::image type="content" source="~/reusable-content/ce-skilling/azure/media/quick-create-portal/project-details.png" alt-text="Screenshot of the Project details section showing where you select the Azure subscription and the resource group for the virtual machine." lightbox="~/reusable-content/ce-skilling/azure/media/quick-create-portal/project-details.png":::
75
75
76
76
1. Under **Instance details**, type *myVM* for the **Virtual machine name**, choose the same **Region** as your database server.
77
77
78
-
> :::image type="content" source="../../virtual-machines/linux/media/quick-create-portal/instance-details.png" alt-text="Screenshot of the Instance details section where you provide a name for the virtual machine and select its region, image and size." lightbox="../../virtual-machines/linux/media/quick-create-portal/instance-details.png":::
78
+
> :::image type="content" source="~/reusable-content/ce-skilling/azure/media/quick-create-portal/instance-details.png" alt-text="Screenshot of the Instance details section where you provide a name for the virtual machine and select its region, image and size." lightbox="~/reusable-content/ce-skilling/azure/media/quick-create-portal/instance-details.png":::
79
79
80
80
1. Under **Administrator account**, select **SSH public key**.
81
81
82
82
1. In **Username** type *azureuser*.
83
83
84
84
1. For **SSH public key source**, leave the default of **Generate new key pair**, and then type *myKey* for the **Key pair name**.
85
85
86
-
> :::image type="content" source="../../virtual-machines/linux/media/quick-create-portal/administrator-account.png" alt-text="Screenshot of the Administrator account section where you select an authentication type and provide the administrator credentials." lightbox="../../virtual-machines/linux/media/quick-create-portal/administrator-account.png":::
86
+
> :::image type="content" source="~/reusable-content/ce-skilling/azure/media/quick-create-portal/administrator-account.png" alt-text="Screenshot of the Administrator account section where you select an authentication type and provide the administrator credentials." lightbox="~/reusable-content/ce-skilling/azure/media/quick-create-portal/administrator-account.png":::
87
87
88
88
1. Under **Inbound port rules** > **Public inbound ports**, choose **Allow selected ports** and then select **SSH (22)** and **HTTP (80)** from the drop-down.
89
89
90
-
> :::image type="content" source="../../virtual-machines/linux/media/quick-create-portal/inbound-port-rules.png" alt-text="Screenshot of the inbound port rules section where you select what ports inbound connections are allowed on." lightbox="../../virtual-machines/linux/media/quick-create-portal/inbound-port-rules.png":::
90
+
> :::image type="content" source="~/reusable-content/ce-skilling/azure/media/quick-create-portal/inbound-port-rules.png" alt-text="Screenshot of the inbound port rules section where you select what ports inbound connections are allowed on." lightbox="~/reusable-content/ce-skilling/azure/media/quick-create-portal/inbound-port-rules.png":::
91
91
92
92
1. Select **Networking** page to configure the virtual network. For the virtual network, choose the **vnetenvironment1** created for the Azure Database for MySQL flexible server instance.
93
93
@@ -114,7 +114,7 @@ Since the server is in a virtual network, you can only connect to the server fro
114
114
> :::image type="content" source="./media/quickstart-create-connect-server-vnet/vm-create-success.png" alt-text="Screenshot of deployment success." lightbox="./media/quickstart-create-connect-server-vnet/vm-create-success.png":::
115
115
116
116
1. On the page for your new VM, select the public IP address and copy it to your clipboard.
117
-
> :::image type="content" source="../../virtual-machines/linux/media/quick-create-portal/ip-address.png" alt-text="Screenshot showing how to copy the IP address for the virtual machine." lightbox="../../virtual-machines/linux/media/quick-create-portal/ip-address.png":::
117
+
> :::image type="content" source="~/reusable-content/ce-skilling/azure/media/quick-create-portal/ip-address.png" alt-text="Screenshot showing how to copy the IP address for the virtual machine." lightbox="~/reusable-content/ce-skilling/azure/media/quick-create-portal/ip-address.png":::
Get started with [GitHub Actions](https://docs.github.com/en/actions) by using a workflow to deploy database updates to [Azure Database for MySQL flexible server](https://azure.microsoft.com/services/mysql/).
0 commit comments