Configure custom port for Azure Database for MySQL server

Scott Barber 1 Reputation point
2021-10-23T08:04:31.447+00:00

Hey there, I have Azure Database for MySQL server configured.

The default port seems to be 3306.

Is there any way to configure this to a different port for this SQL connection.

Thanks!

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
712 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KalyanChanumolu-MSFT 8,316 Reputation points
    2021-10-25T06:05:41.497+00:00

    @Scott Barber Welcome to Microsoft Q&A forums.

    Unfortunately, it is currently not possible to use a custom port for Azure Database for MySQL server. The default port is 3306.
    However, if you have a requirement to a specific major version of MySQL, you can use port 3308 for v5.7 clients and port 3309 for v8.0 client

    Read more here

    ----------

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

    0 comments No comments