Skip to content

Commit 95e08ba

Browse files
authored
Merge pull request #260765 from v-thepet/terms4
[SCOPED] Azure Database for MySQL flexible server naming - connect and howto articles
2 parents 452e245 + 82aa2d1 commit 95e08ba

File tree

51 files changed

+497
-501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+497
-501
lines changed

articles/mysql/flexible-server/concepts-maintenance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.date: 05/24/2022
1212

1313
# Scheduled maintenance in Azure Database for MySQL - Flexible Server
1414

15-
[[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
15+
[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
1616

1717
Azure Database for MySQL flexible server performs periodic maintenance to keep your managed database secure, stable, and up-to-date. During maintenance, the server gets new features, updates, and patches.
1818
> [!IMPORTANT]

articles/mysql/flexible-server/connect-azure-cli.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ ms.date: 05/03/2023
1212

1313
# Quickstart: Connect with Azure Database for MySQL - Flexible Server by using Azure CLI
1414

15-
[[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
15+
[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
1616

17-
This quickstart demonstrates how to connect to an Azure Database for MySQL - Flexible Server using Azure CLI with ```az mysql flexible-server connect``` and execute single query or sql file with ```az mysql flexible-server execute``` command. This command allows you test connectivity to your database server and run queries. You can also run multiple queries using the interactive mode.
17+
This quickstart demonstrates how to connect to Azure Database for MySQL flexible server using Azure CLI with `az mysql flexible-server connect` and execute single query or sql file with the `az mysql flexible-server execute` command. This command allows you test connectivity to your database server and run queries. You can also run multiple queries using the interactive mode.
1818

1919
## Prerequisites
2020

2121
- An Azure account with an active subscription.
2222

2323
[!INCLUDE [flexible-server-free-trial-note](../includes/flexible-server-free-trial-note.md)]
2424
- Install [Azure CLI](/cli/azure/install-azure-cli) latest version (2.20.0 or higher)
25-
- Log in using Azure CLI with ```az login``` command
26-
- Turn on parameter persistence with ```az config param-persist on```. Parameter persistence helps you use local context without having to repeat numerous arguments like resource group or location etc.
25+
- Log in using Azure CLI with the `az login` command
26+
- Turn on parameter persistence with `az config param-persist on`. Parameter persistence helps you use local context without having to repeat numerous arguments like resource group or location.
2727

2828
## Create a MySQL Flexible Server
2929

30-
The first thing we create is a managed MySQL server. In [Azure Cloud Shell](https://shell.azure.com/), run the following script and make a note of the **server name**, **username** and **password** generated from this command.
30+
The first thing to create is a managed Azure Database for MySQL flexible server instance. In [Azure Cloud Shell](https://shell.azure.com/), run the following script and make a note of the **server name**, **username** and **password** generated from this command.
3131

3232
```azurecli-interactive
3333
az mysql flexible-server create --public-access <your-ip-address>
@@ -162,7 +162,7 @@ test 200
162162

163163
## Run SQL File
164164

165-
You can execute a sql file with the command using ```--file-path``` argument, ```-q```.
165+
You can execute a sql file with the command using `--file-path` argument, `-q`.
166166

167167
```azurecli-interactive
168168
az mysql flexible-server execute -n <server-name> -u <username> -p "<password>" -d <database-name> --file-path "<file-path>"
@@ -186,5 +186,5 @@ Closed the connection to mysqldemoserver.
186186
## Next Steps
187187

188188
> [!div class="nextstepaction"]
189-
* [Connect to Azure Database for MySQL - Flexible Server with encrypted connections](how-to-connect-tls-ssl.md)
189+
* [Connect to Azure Database for MySQL flexible server with encrypted connections](how-to-connect-tls-ssl.md)
190190
* [Manage the server](./how-to-manage-server-cli.md)

articles/mysql/flexible-server/connect-csharp.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ ms.date: 05/03/2023
1313

1414
# Quickstart: Use .NET (C#) to connect and query data in Azure Database for MySQL - Flexible Server
1515

16-
[[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
16+
[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
1717

18-
This quickstart demonstrates how to connect to an Azure Database for MySQL by using a C# application. It shows how to use SQL statements to query, insert, update, and delete data in the database.
18+
This quickstart demonstrates how to connect to an Azure Database for MySQL flexible server instance by using a C# application. It shows how to use SQL statements to query, insert, update, and delete data in the database.
1919

2020
## Prerequisites
2121

@@ -24,7 +24,7 @@ For this quickstart you need:
2424
- An Azure account with an active subscription.
2525

2626
[!INCLUDE [flexible-server-free-trial-note](../includes/flexible-server-free-trial-note.md)]
27-
- Create an Azure Database for MySQL - Flexible Server using [Azure portal](./quickstart-create-server-portal.md) <br/> or [Azure CLI](./quickstart-create-server-cli.md) if you do not have one.
27+
- Create an Azure Database for MySQL flexible server instance by using the [Azure portal](./quickstart-create-server-portal.md) <br/> or [Azure CLI](./quickstart-create-server-cli.md) if you do not have one.
2828
- Based on whether you are using public or private access, complete **ONE** of the actions below to enable connectivity.
2929
- [Create a database and non-admin user](../single-server/how-to-create-users.md)
3030
- Install the [.NET SDK for your platform](https://dotnet.microsoft.com/download) (Windows, Ubuntu Linux, or macOS) for your platform.
@@ -44,13 +44,13 @@ dotnet add package MySqlConnector
4444

4545
## Get connection information
4646

47-
Get the connection information needed to connect to the Azure Database for MySQL. You need the fully qualified server name and login credentials.
47+
Get the connection information needed to connect to the Azure Database for MySQL flexible server instance. You need the fully qualified server name and login credentials.
4848

4949
1. Log in to the [Azure portal](https://portal.azure.com/).
5050
2. From the left-hand menu in Azure portal, select **All resources**, and then search for the server you have created (such as **mydemoserver**).
5151
3. Select the server name.
5252
4. From the server's **Overview** panel, make a note of the **Server name** and **Server admin login name**. If you forget your password, you can also reset the password from this panel.
53-
:::image type="content" source="./media/connect-csharp/server-overview-name-login.png" alt-text="Azure Database for MySQL server name":::
53+
:::image type="content" source="./media/connect-csharp/server-overview-name-login.png" alt-text="Azure Database for MySQL flexible server instance name":::
5454

5555
## Step 1: Connect and insert data
5656

@@ -312,7 +312,7 @@ az group delete \
312312
## Next steps
313313

314314
> [!div class="nextstepaction"]
315-
> [Manage Azure Database for MySQL server using Portal](./how-to-manage-server-portal.md)<br/>
315+
> [Manage Azure Database for MySQL flexible server using the portal](./how-to-manage-server-portal.md)<br/>
316316
317317
> [!div class="nextstepaction"]
318-
> [Manage Azure Database for MySQL server using CLI](./how-to-manage-server-cli.md)
318+
> [Manage Azure Database for MySQL flexible server using Azure CLI](./how-to-manage-server-cli.md)

articles/mysql/flexible-server/connect-java.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ ms.date: 05/03/2023
1313

1414
# Use Java and JDBC with Azure Database for MySQL - Flexible Server
1515

16-
[[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
16+
[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
1717

18-
This topic demonstrates creating a sample application that uses Java and [JDBC](https://en.wikipedia.org/wiki/Java_Database_Connectivity) to store and retrieve information in [Azure Database for MySQL - Flexible Server](../index.yml).
18+
This topic demonstrates creating a sample application that uses Java and [JDBC](https://en.wikipedia.org/wiki/Java_Database_Connectivity) to store and retrieve information in [Azure Database for MySQL flexible server](../index.yml).
1919

2020
JDBC is the standard Java API to connect to traditional relational databases.
2121

2222
In this article, we'll include two authentication methods: Microsoft Entra authentication and MySQL authentication. The **Passwordless** tab shows the Microsoft Entra authentication and the **Password** tab shows the MySQL authentication.
2323

24-
Microsoft Entra authentication is a mechanism for connecting to Azure Database for MySQL using identities defined in Microsoft Entra ID. With Microsoft Entra authentication, you can manage database user identities and other Microsoft services in a central location, which simplifies permission management.
24+
Microsoft Entra authentication is a mechanism for connecting to Azure Database for MySQL flexible server using identities defined in Microsoft Entra ID. With Microsoft Entra authentication, you can manage database user identities and other Microsoft services in a central location, which simplifies permission management.
2525

2626
MySQL authentication uses accounts stored in MySQL. If you choose to use passwords as credentials for the accounts, these credentials will be stored in the `user` table. Because these passwords are stored in MySQL, you'll need to manage the rotation of the passwords by yourself.
2727

@@ -51,7 +51,7 @@ export CURRENT_USER_OBJECTID=$(az ad signed-in-user show --query id -o tsv)
5151

5252
Replace the placeholders with the following values, which are used throughout this article:
5353

54-
- `<YOUR_DATABASE_NAME>`: The name of your MySQL server, which should be unique across Azure.
54+
- `<YOUR_DATABASE_NAME>`: The name of your Azure Database for MySQL flexible server instance, which should be unique across Azure.
5555
- `<YOUR_AZURE_REGION>`: The Azure region you'll use. You can use `eastus` by default, but we recommend that you configure a region closer to where you live. You can see the full list of available regions by entering `az account list-locations`.
5656
- `<YOUR_USER_ASSIGNED_MANAGED_IDENTITY_NAME>`: The name of your user assigned managed identity server, which should be unique across Azure.
5757

@@ -69,7 +69,7 @@ export AZ_MYSQL_NON_ADMIN_PASSWORD=<YOUR_MYSQL_NON_ADMIN_PASSWORD>
6969

7070
Replace the placeholders with the following values, which are used throughout this article:
7171

72-
- `<YOUR_DATABASE_NAME>`: The name of your MySQL server, which should be unique across Azure.
72+
- `<YOUR_DATABASE_NAME>`: The name of your Azure Database for MySQL flexible server instance, which should be unique across Azure.
7373
- `<YOUR_AZURE_REGION>`: The Azure region you'll use. You can use `eastus` by default, but we recommend that you configure a region closer to where you live. You can see the full list of available regions by entering `az account list-locations`.
7474
- `<YOUR_MYSQL_ADMIN_PASSWORD>` and `<YOUR_MYSQL_NON_ADMIN_PASSWORD>`: The password of your MySQL database server. That password should have a minimum of eight characters. The characters should be from three of the following categories: English uppercase letters, English lowercase letters, numbers (0-9), and non-alphanumeric characters (!, $, #, %, and so on).
7575

@@ -86,12 +86,12 @@ az group create \
8686

8787
## Create an Azure Database for MySQL instance
8888

89-
### Create a MySQL server and set up admin user
89+
### Create Azure Database for MySQL flexible server instance and set up an admin user
9090

91-
The first thing you'll create is a managed MySQL server.
91+
The first thing you create is a managed Azure Database for MySQL flexible server instance.
9292

9393
> [!NOTE]
94-
> You can read more detailed information about creating MySQL servers in [Create an Azure Database for MySQL server by using the Azure portal](./quickstart-create-server-portal.md).
94+
> You can read more detailed information about creating MySQL servers in [Create an Azure Database for MySQL flexible server instance by using the Azure portal](./quickstart-create-server-portal.md).
9595
9696
#### [Passwordless connection (Recommended)](#tab/passwordless)
9797

@@ -123,7 +123,7 @@ az identity create \
123123
> [!IMPORTANT]
124124
> After creating the user-assigned identity, ask your *Global Administrator* or *Privileged Role Administrator* to grant the following permissions for this identity: `User.Read.All`, `GroupMember.Read.All`, and `Application.Read.ALL`. For more information, see the [Permissions](./concepts-azure-ad-authentication.md#permissions) section of [Active Directory authentication](./concepts-azure-ad-authentication.md).
125125
126-
Run the following command to assign the identity to MySQL server for creating Microsoft Entra admin:
126+
Run the following command to assign the identity to Azure Database for MySQL flexible server for creating Microsoft Entra admin:
127127

128128
```azurecli-interactive
129129
az mysql flexible-server identity assign \
@@ -144,9 +144,9 @@ az mysql flexible-server ad-admin create \
144144
```
145145

146146
> [!IMPORTANT]
147-
> When setting the administrator, a new user is added to the Azure Database for MySQL server with full administrator permissions. Only one Microsoft Entra admin can be created per MySQL server and selection of another one will overwrite the existing Microsoft Entra admin configured for the server.
147+
> When setting the administrator, a new user is added to the Azure Database for MySQL flexible server instance with full administrator permissions. Only one Microsoft Entra admin can be created per Azure Database for MySQL flexible server instance and selection of another one will overwrite the existing Microsoft Entra admin configured for the server.
148148
149-
This command creates a small MySQL server and sets the Active Directory admin to the signed-in user.
149+
This command creates a small Azure Database for MySQL flexible server instance and sets the Active Directory admin to the signed-in user.
150150

151151
#### [Password](#tab/password)
152152

@@ -161,21 +161,21 @@ az mysql flexible-server create \
161161
--output tsv
162162
```
163163

164-
This command creates a small MySQL server.
164+
This command creates a small Azure Database for MySQL flexible server instance.
165165

166166
---
167167

168-
The MySQL server that you created has an empty database called `flexibleserverdb`.
168+
The Azure Database for MySQL flexible server instance that you created has an empty database called `flexibleserverdb`.
169169

170170
[Having any issues? Let us know.](https://github.com/MicrosoftDocs/azure-docs/issues)
171171

172-
### Configure a firewall rule for your MySQL server
172+
### Configure a firewall rule for your Azure Database for MySQL flexible server instance
173173

174-
Azure Database for MySQL instances are secured by default. They have a firewall that doesn't allow any incoming connection.
174+
Azure Database for MySQL flexible server instances are secured by default. They have a firewall that doesn't allow any incoming connection.
175175

176176
You can skip this step if you're using Bash because the `flexible-server create` command already detected your local IP address and set it on MySQL server.
177177

178-
If you're connecting to your MySQL server from Windows Subsystem for Linux (WSL) on a Windows computer, you'll need to add the WSL host ID to your firewall. Obtain the IP address of your host machine by running the following command in WSL:
178+
If you're connecting to your Azure Database for MySQL flexible server instance from Windows Subsystem for Linux (WSL) on a Windows computer, you'll need to add the WSL host ID to your firewall. Obtain the IP address of your host machine by running the following command in WSL:
179179

180180
```bash
181181
sudo cat /etc/resolv.conf
@@ -464,7 +464,7 @@ public class DemoApplication {
464464

465465
[Having any issues? Let us know.](https://github.com/MicrosoftDocs/azure-docs/issues)
466466

467-
This Java code will use the *database.properties* and the *schema.sql* files that you created earlier, in order to connect to the MySQL server and create a schema that will store your data.
467+
This Java code will use the *database.properties* and the *schema.sql* files that you created earlier, in order to connect to the Azure Database for MySQL flexible server instance and create a schema that will store your data.
468468

469469
In this file, you can see that we commented methods to insert, read, update and delete data: you'll code those methods in the rest of this article, and you'll be able to uncomment them one after each other.
470470

@@ -480,7 +480,7 @@ You can now execute this main class with your favorite tool:
480480
- Using your IDE, you should be able to right-click on the *DemoApplication* class and execute it.
481481
- Using Maven, you can run the application by executing: `mvn exec:java -Dexec.mainClass="com.example.demo.DemoApplication"`.
482482

483-
The application should connect to the Azure Database for MySQL, create a database schema, and then close the connection, as you should see in the console logs:
483+
The application should connect to the Azure Database for MySQL flexible server instance, create a database schema, and then close the connection, as you should see in the console logs:
484484

485485
```output
486486
[INFO ] Loading application properties
@@ -642,7 +642,7 @@ Executing the main class should now produce the following output:
642642

643643
[Having any issues? Let us know.](https://github.com/MicrosoftDocs/azure-docs/issues)
644644

645-
### Updating data in Azure Database for MySQL
645+
### Updating data in Azure Database for MySQL flexible server
646646

647647
Next, update the data you previously inserted.
648648

@@ -686,7 +686,7 @@ Executing the main class should now produce the following output:
686686
[INFO ] Closing database connection
687687
```
688688

689-
### Deleting data in Azure Database for MySQL
689+
### Deleting data in Azure Database for MySQL flexible server
690690

691691
Finally, delete the data you previously inserted.
692692

@@ -729,7 +729,7 @@ Executing the main class should now produce the following output:
729729

730730
## Clean up resources
731731

732-
Congratulations! You've created a Java application that uses JDBC to store and retrieve data from Azure Database for MySQL.
732+
Congratulations! You've created a Java application that uses JDBC to store and retrieve data from Azure Database for MySQL flexible server.
733733

734734
To clean up all resources used during this quickstart, delete the resource group using the following command:
735735

0 commit comments

Comments
 (0)