Skip to content

Commit c9f98cd

Browse files
authored
Merge pull request #219781 from maud-lv/ml-sc-integration2
Update MySQL, SQL, PostgreSQL
2 parents 7babf7d + 6bfcec3 commit c9f98cd

File tree

3 files changed

+154
-98
lines changed

3 files changed

+154
-98
lines changed

articles/service-connector/how-to-integrate-mysql.md

Lines changed: 50 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ author: maud-lv
55
ms.author: malev
66
ms.service: service-connector
77
ms.topic: how-to
8-
ms.date: 09/26/2022
9-
ms.custom: event-tier1-build-2022
8+
ms.date: 11/29/2022
9+
ms.custom: event-tier1-build-2022, engagement-fy23
1010
---
1111

1212
# Integrate Azure Database for MySQL with Service Connector
@@ -25,7 +25,7 @@ Supported authentication and clients for App Service, Container Apps, and Azure
2525

2626
| Client type | System-assigned managed identity | User-assigned managed identity | Secret / connection string | Service principal |
2727
|---------------------------------|--------------------------------------|--------------------------------|--------------------------------------|-------------------|
28-
| .NET (MySqlConnector) | | | ![yes icon](./media/green-check.png) | |
28+
| .NET (MySqlConnector) | ![yes icon](./media/green-check.png) | | ![yes icon](./media/green-check.png) | |
2929
| Go (go-sql-driver for mysql) | | | ![yes icon](./media/green-check.png) | |
3030
| Java (JDBC) | ![yes icon](./media/green-check.png) | | ![yes icon](./media/green-check.png) | |
3131
| Java - Spring Boot (JDBC) | ![yes icon](./media/green-check.png) | | ![yes icon](./media/green-check.png) | |
@@ -40,41 +40,62 @@ Supported authentication and clients for App Service, Container Apps, and Azure
4040

4141
Use the connection details below to connect compute services to Azure Database for MySQL. For each example below, replace the placeholder texts `<MySQL-DB-name>`, `<MySQL-DB-username>`, `<MySQL-DB-password>`, `<server-host>`, and `<port>` with your Azure Database for MySQL name, Azure Database for MySQL username, Azure Database for MySQL password, server host, and port.
4242

43-
### .NET (MySqlConnector) secret / connection string
43+
### .NET (MySqlConnector)
44+
45+
#### .NET (MySqlConnector) secret / connection string
4446

4547
| Default environment variable name | Description | Example value |
4648
|-----------------------------------|---------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
4749
| AZURE_MYSQL_CONNECTIONSTRING | ADO.NET MySQL connection string | `Server=<MySQL-DB-name>.mysql.database.azure.com;Database=<MySQL-DB-name>;Port=3306;SSL Mode=Required;User Id=<MySQL-DBusername>;Password=<MySQL-DB-password>` |
4850

49-
### Java (JDBC) secret / connection string
51+
#### .NET (MySqlConnector) system-assigned managed identity
52+
53+
| Default environment variable name | Description | Example value |
54+
|-----------------------------------|---------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
55+
| AZURE_MYSQL_CONNECTIONSTRING | ADO.NET MySQL connection string | `Server=<MySQL-DB-name>.mysql.database.azure.com;Database=<MySQL-DB-name>;Port=3306;SSL Mode=Required;User Id=<MySQL-DBusername>;` |
56+
57+
### Go (go-sql-driver for mysql)
58+
59+
#### Go (go-sql-driver for mysql) secret / connection string
60+
61+
| Default environment variable name | Description | Example value |
62+
|-----------------------------------|---------------------------------|--------------------------------------------------------------------------------------------------------------|
63+
| AZURE_MYSQL_CONNECTIONSTRING | Go-sql-driver connection string | `<MySQL-DB-username>@<MySQL-DB-name>:<MySQL-DB-password>@tcp(<server-host>:<port>)/<MySQL-DB-name>?tls=true` |
64+
65+
### Java (JDBC)
66+
67+
#### Java (JDBC) secret / connection string
5068

5169
| Default environment variable name | Description | Example value |
5270
|-----------------------------------|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
5371
| AZURE_MYSQL_CONNECTIONSTRING | JDBC MySQL connection string | `jdbc:mysql://<MySQL-DB-name>.mysql.database.azure.com:3306/<MySQL-DB-name>?sslmode=required&user=<MySQL-DB-username>&password=<Uri.EscapeDataString(<MySQL-DB-password>)` |
5472

55-
### Java (JDBC) system-assigned managed identity
73+
#### Java (JDBC) system-assigned managed identity
5674

5775
| Default environment variable name | Description | Example value |
5876
|-----------------------------------|------------------------------|------------------------------------------------------------------------------------------------------------------------|
5977
| AZURE_MYSQL_CONNECTIONSTRING | JDBC MySQL connection string | `jdbc:mysql://<MySQL-DB-name>.mysql.database.azure.com:3306/<MySQL-DB-name>?sslmode=required&user=<MySQL-DB-username>` |
6078

61-
### Java - Spring Boot (JDBC) secret / connection string
79+
### Java - Spring Boot (JDBC)
80+
81+
#### Java - Spring Boot (JDBC) secret / connection string
6282

6383
| Application properties | Description | Example value |
6484
|-----------------------------|-------------------------------|-----------------------------------------------------------------------------------------------|
6585
| spring.datatsource.url | Spring Boot JDBC database URL | `jdbc:mysql://<MySQL-DB-name>.mysql.database.azure.com:3306/<MySQL-DB-name>?sslmode=required` |
6686
| spring.datatsource.username | Database username | `<MySQL-DB-username>@<MySQL-DB-name>` |
6787
| spring.datatsource.password | Database password | `MySQL-DB-password` |
6888

69-
### Java - Spring Boot (JDBC) system-assigned managed identity
89+
#### Java - Spring Boot (JDBC) system-assigned managed identity
7090

7191
| Application properties | Description | Example value |
7292
|-----------------------------|-------------------------------|-----------------------------------------------------------------------------------------------|
7393
| spring.datatsource.url | Spring Boot JDBC database URL | `jdbc:mysql://<MySQL-DB-name>.mysql.database.azure.com:3306/<MySQL-DB-name>?sslmode=required` |
7494
| spring.datatsource.username | Database username | `Connection-Name` |
75-
| spring.datatsource.password | Database password | `MySQL-DB-password` |
7695

77-
### Node.js (mysql) secret / connection string
96+
### Node.js (mysql)
97+
98+
#### Node.js (mysql) secret / connection string
7899

79100
| Default environment variable name | Description | Example value |
80101
|-----------------------------------|-------------------|--------------------------------------------|
@@ -85,7 +106,22 @@ Use the connection details below to connect compute services to Azure Database f
85106
| AZURE_MYSQL_PORT | Port number | `3306` |
86107
| AZURE_MYSQL_SSL | SSL option | `true` |
87108

88-
### Python (mysql-connector-python) secret / connection string
109+
#### PHP (mysqli)
110+
111+
#### PHP (mysqli) secret / connection string
112+
113+
| Default environment variable name | Description | Example value |
114+
|-----------------------------------|--------------------|--------------------------------------------|
115+
| AZURE_MYSQL_HOST | Database Host URL | `<MySQL-DB-name>.mysql.database.azure.com` |
116+
| AZURE_MYSQL_USERNAME | Database Username | `<MySQL-DB-username>@<MySQL-DB-name>` |
117+
| AZURE_MYSQL_PASSWORD | Database password | `<MySQL-DB-password>` |
118+
| AZURE_MYSQL_DBNAME | Database name | `<MySQL-DB-name>` |
119+
| AZURE_MYSQL_PORT | Port number | `3306` |
120+
| AZURE_MYSQL_FLAG | SSL or other flags | `MYSQLI_CLIENT_SSL` |
121+
122+
### Python (mysql-connector-python)
123+
124+
#### Python (mysql-connector-python) secret / connection string
89125

90126
| Default environment variable name | Description | Example value |
91127
|-----------------------------------|-------------------|--------------------------------------------|
@@ -94,7 +130,7 @@ Use the connection details below to connect compute services to Azure Database f
94130
| AZURE_MYSQL_PASSWORD | Database password | `MySQL-DB-password` |
95131
| AZURE_MYSQL_USER | Database Username | `<MySQL-DB-username>@<MySQL-DB-name>` |
96132

97-
### Python-Django secret / connection string
133+
#### Python-Django secret / connection string
98134

99135
| Default environment variable name | Description | Example value |
100136
|-----------------------------------|-------------------|--------------------------------------------|
@@ -103,24 +139,9 @@ Use the connection details below to connect compute services to Azure Database f
103139
| AZURE_MYSQL_PASSWORD | Database password | `MySQL-DB-password` |
104140
| AZURE_MYSQL_NAME | Database name | `MySQL-DB-name` |
105141

106-
### Go (go-sql-driver for mysql) secret / connection string
107-
108-
| Default environment variable name | Description | Example value |
109-
|-----------------------------------|---------------------------------|--------------------------------------------------------------------------------------------------------------|
110-
| AZURE_MYSQL_CONNECTIONSTRING | Go-sql-driver connection string | `<MySQL-DB-username>@<MySQL-DB-name>:<MySQL-DB-password>@tcp(<server-host>:<port>)/<MySQL-DB-name>?tls=true` |
111-
112-
### PHP (mysqli) secret / connection string
113-
114-
| Default environment variable name | Description | Example value |
115-
|-----------------------------------|--------------------|--------------------------------------------|
116-
| AZURE_MYSQL_HOST | Database Host URL | `<MySQL-DB-name>.mysql.database.azure.com` |
117-
| AZURE_MYSQL_USERNAME | Database Username | `<MySQL-DB-username>@<MySQL-DB-name>` |
118-
| AZURE_MYSQL_PASSWORD | Database password | `<MySQL-DB-password>` |
119-
| AZURE_MYSQL_DBNAME | Database name | `<MySQL-DB-name>` |
120-
| AZURE_MYSQL_PORT | Port number | `3306` |
121-
| AZURE_MYSQL_FLAG | SSL or other flags | `MYSQLI_CLIENT_SSL` |
142+
### Ruby (mysql2)
122143

123-
### Ruby (mysql2) secret / connection string
144+
#### Ruby (mysql2) secret / connection string
124145

125146
| Default environment variable name | Description | Example value |
126147
|-----------------------------------|-------------------|--------------------------------------------|

0 commit comments

Comments
 (0)