Supported Azure Database for MySQL server versions
APPLIES TO: Azure Database for MySQL - Single Server
Azure Database for MySQL has been developed from MySQL Community Edition, using the InnoDB storage engine. The service supports all the current major version supported by the community namely MySQL 5.7 and 8.0. MySQL uses the X.Y.Z naming scheme where X is the major version, Y is the minor version, and Z is the bug fix release. For more information about the scheme, see the MySQL documentation.
Connect to a gateway node that is running a specific MySQL version
In the Single Server deployment option, a gateway is used to redirect the connections to server instances. After the connection is established, the MySQL client displays the version of MySQL set in the gateway, not the actual version running on your MySQL server instance. To determine the version of your MySQL server instance, use the
SELECT VERSION(); command at the MySQL prompt. Review Connectivity architecture to learn more about gateways in Azure Database for MySQL service architecture.
As Azure Database for MySQL supports major version v5.7 and v8.0, the default port 3306 to connect to Azure Database for MySQL runs MySQL client version 5.6 (least common denominator) to support connections to servers of all 2 supported major versions. However, if your application has a requirement to connect to specific major version say v5.7 or v8.0, you can do so by changing the port in your server connection string.
In Azure Database for MySQL service, gateway nodes listens on port 3308 for v5.7 clients and port 3309 for v8.0 clients. In other words, if you would like to connect to v5.7 gateway client, you should use your fully qualified server name and port 3308 to connect to your server from client application. Similarly, if you would like to connect to v8.0 gateway client, you can use your fully qualified server name and port 3309 to connect to your server. Check the following example for further clarity.
Connecting to Azure Database for MySQL via ports 3308 and 3309 are only supported for public connectivity, Private Link and VNet service endpoints can only be used with port 3306.
Azure Database for MySQL currently supports the following major and minor versions of MySQL:
Current minor version
Current minor version
|MySQL Version 5.6||5.6.47 (Retired)||Not supported|
|MySQL Version 5.7||5.7.32||5.7.37|
|MySQL Version 8.0||8.0.15||8.0.28|
Read the version support policy for retired versions in version support policy documentation.
Managing updates and upgrades
The service automatically manages patching for bug fix version updates. For example, 5.7.20 to 5.7.21.
Major version upgrade is currently supported by service for upgrades from MySQL v5.6 to v5.7. For more details, refer how to perform major version upgrades. If you'd like to upgrade from 5.7 to 8.0, we recommend you perform dump and restore to a server that was created with the new engine version.
Submit and view feedback for