Hi, @juan polanco Welcome to the Microsoft Q&A forum, Thanks for posting your question.
In Single Server, a gateway is used to redirect the connections to server instances in the backend. After the connection is established, the MySQL client displays the version of MySQL set in the gateway, not the actual version running on the MySQL server instance. This is why you may see 5.6 in the initial connection. If you use the SELECT VERSION(); command at the MySQL prompt it will display the version of MySQL instance.
The default port 3306 to connect to Azure Database for MySQL reaches gateway that runs MySQL client version 5.6 (least common denominator) to support connections to servers of all 2 supported major versions. However, if there is a requirement to connect to a specific major version say v5.7 or v8.0, you can do so by changing the port in your server connection string.
Gateway nodes listen on port 3308 for v5.7 clients and port 3309 for v8.0 clients. If you would like to connect to v5.7 gateway client, use port 3308 and, similarly, to connect to v8.0 gateway client, use port 3309.
This is documented here: Azure Database for MySQL managing updates and upgrades | Microsoft Learn
Hope this information helps. Please let us know if any further queries.
Regards
Geetha