VM connection to MySQL

Lucas Escudero 191 Reputation points
2022-11-25T13:49:07.683+00:00

Good afternoon, I want to tell you that I have a VM with Ubuntu 20.04 hosted in Azure, and on the other hand I created a flexible MySQL server also within Azure.
What I need is to connect this VM to the mentioned database.
How do I manage to do it?

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

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,542 Reputation points Microsoft Employee Moderator
    2022-11-26T03:32:28.19+00:00

    Hi, @Lucas Escudero Thanks for posting your question in the Microsoft Q&A forum.
    I understand you are not able to connect to the Azure MySQL flexible server from Azure Ubuntu VM
    You can follow this document to connect from Ubuntu. if it is public access also steps are the same other than for the networking side and firewall rules

    Regards
    Geetha


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.