As mentioned in the documentation, when connecting to the service, the username in the connection string for authentication needs to be specified in the format username@servername. It’s also important to note that all popular driver frameworks viz JDBC, PHP, ADO.Net, Nodejs, Python, Golang, etc. support this specification. Further, we have also worked with the community and updated some of the drivers which no longer require you to specify this format. The following is the list of drivers which no longer require this format:
Java - MariaDB Connector/J: since version 2.2.5+
C/C++ - MariaDB Connector/C: since version 3.0.5+
PHP - mysqlnd: since PHP 7.2.23+; PHP 7.3.10+
To understand this requirement for Azure Database for MySQL, you first need to understand the underlying architecture and design of the service. Below is the architecture for Azure Database for MySQL.
Please don’t forget to Accept the answer
and up-vote
wherever the information provided helps you, this can be beneficial to other community members.