Integrate Azure Database for MySQL with Service Connector
Article
2 minutes to read
This page shows the supported authentication types and client types of Azure Database for MySQL using Service Connector. You might still be able to connect to Azure Database for MySQL in other programming languages without using Service Connector. This page also shows default environment variable names and values (or Spring Boot configuration) you get when you create the service connection. You can learn more about Service Connector environment variable naming convention.
Supported compute service
Azure App Service
Azure Container Apps
Azure Spring Apps
Supported authentication types and client types
Supported authentication and clients for App Service, Container Apps, and Azure Spring Apps:
Client type
System-assigned managed identity
User-assigned managed identity
Secret / connection string
Service principal
.NET (MySqlConnector)
Go (go-sql-driver for mysql)
Java (JDBC)
Java - Spring Boot (JDBC)
Node.js (mysql)
Python (mysql-connector-python)
Python-Django
PHP (mysqli)
Ruby (mysql2)
None
Default environment variable names or application properties
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.