MySQL drivers and management tools compatible with Azure Database for MySQL

APPLIES TO: Azure Database for MySQL - Single Server


Azure Database for MySQL - Single Server is on the retirement path. We strongly recommend for you to upgrade to Azure Database for MySQL - Flexible Server. For more information about migrating to Azure Database for MySQL - Flexible Server, see What's happening to Azure Database for MySQL Single Server?

This article describes the drivers and management tools that are compatible with Azure Database for MySQL Single Server.


This article is only applicable to Azure Database for MySQL Single Server to ensure drivers are compatible with connectivity architecture of Single Server service. Azure Database for MySQL Flexible Server is compatible with all the drivers and tools supported and compatible with MySQL community edition.

MySQL Drivers

Azure Database for MySQL uses the world's most popular community edition of MySQL database. As such, it's compatible with a wide variety of programming languages and drivers. The goal is to support the three most recent versions MySQL drivers, and efforts with authors from the open-source community to constantly improve the functionality and usability of MySQL drivers continue. A list of drivers that have been tested and found to be compatible with Azure Database for MySQL 5.6 and 5.7 is provided in the following table:

Programming Language Driver Links Compatible Versions Incompatible Versions Notes
PHP mysqli, pdo_mysql, mysqlnd 5.5, 5.6, 7.x 5.3 For PHP 7.0 connection with SSL MySQLi, add MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT in the connection string.
mysqli_real_connect($conn, $host, $username, $password, $db_name, 3306, NULL, MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT);
.NET Async MySQL Connector for .NET
Installation package from NuGet
0.27 and after 0.26.5 and before
.NET MySQL Connector/NET 6.6.3, 7.0, 8.0 An encoding bug may cause connections to fail on some non-UTF8 Windows systems.
Node.js mysqljs
Installation package from NPM:
Run npm install mysql from NPM
2.15 2.14.1 and before
Node.js node-mysql2 1.3.4+
Go Go MySQL Driver 1.3, 1.4 1.2 and before Use allowNativePasswords=true in the connection string for version 1.3. Version 1.4 contains a fix and allowNativePasswords=true is no longer required.
Python MySQL Connector/Python 1.2.3, 2.0, 2.1, 2.2, use 8.0.16+ with MySQL 8.0 1.2.2 and before
Python PyMySQL 0.7.11, 0.8.0, 0.8.1, 0.9.3+ 0.9.0 - 0.9.2 (regression in web2py)
Java MariaDB Connector/J 2.1, 2.0, 1.6 1.5.5 and before
Java MySQL Connector/J 5.1.21+, use 8.0.17+ with MySQL 8.0 5.1.20 and below
C MySQL Connector/C (libmysqlclient) 6.0.2+
C MySQL Connector/ODBC (myodbc) 3.51.29+
C++ MySQL Connector/C++ 1.1.9+ 1.1.3 and below
C++ MySQL++ 3.2.3+
Ruby mysql2 0.4.10+
R RMySQL 0.10.16+
Swift mysql-swift 0.7.2+
Swift vapor/mysql 2.0.1+

Management Tools

The compatibility advantage extends to database management tools as well. Your existing tools should continue to work with Azure Database for MySQL, as long as the database manipulation operates within the confines of user permissions. Three common database management tools that have been tested and found to be compatible with Azure Database for MySQL 5.6 and 5.7 are listed in the following table:

MySQL Workbench 6.x and up Navicat 12 PHPMyAdmin 4.x and up dbForge Studio for MySQL 9.0
Create, Update, Read, Write, Delete X X X X
SSL Connection X X X X
SQL Query Auto Completion X X X
Import and Export Data X X X X
Export to Multiple Formats X X X X
Backup and Restore X X
Display Server Parameters X X X X
Display Client Connections X X X X

Next steps