Azure Database connection issue for MySQL flexible server

virajpatil 1 Reputation point
2022-06-09T08:15:10+00:00

Hello,

I have created Azure Database for MySQL flexible server and created one database in that.
Now I am not able to connect to this database with the help of workbench and with my Laravel website which is hosted on the Azure platform.

Can you guys please help me to fix this issue?

Azure Database for MySQL
{count} votes

2 answers

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,587 Reputation points Microsoft Employee Moderator
    2022-06-10T19:04:43.403+00:00

    Hi, @virajpatil Thanks for providing additional information
    • If you are able to connect with Azure VM but not with MySQL workbench, it could be a network configuration issue.
    • A getaddrinfo failed in your app does point towards a mismatch with Hostname. The other possibility is that you have chosen private access connectivity and are connecting from outside the vnet without an express route or VPN
    for more investigation if you have a support plan you may file a support ticket.

    Regards
    Geetha


  2. GeethaThatipatri-MSFT 29,587 Reputation points Microsoft Employee Moderator
    2022-07-14T18:35:12.193+00:00

    Hi @virajpatil As per the support team please find the articles below and follow the same for setting up your environment to resolve your original issue.

    Connect Azure Database for MySQL Flexible Server with private access connectivity method:
    https://learn.microsoft.com/en-us/azure/mysql/flexible-server/quickstart-create-connect-server-vnet

    Connect Azure Database for MySQL Flexible Server with private access connectivity method :
    Enable integration with an Azure virtual network

    Regards
    Geetha

    0 comments No comments

Your answer

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