Cannot connect to MySQLServer Azure database from MySQL Workbench
GkM-1383
0
Reputation points
Hello all, I have created an Azure database for MySQL flexible server but it is not possible to establish connection to that server from the MySQL Workbench client installed on my PC (Windows 11). I have gone through the documentation to troubleshoot this type of connectivity issue and read the existing threads but the issue still persists. Note that I have done a series of pings to test the availability of that MySQL Server:
- They all fail when executed from my laptop's command line tool using psping or telnet, or from my laptop's PowerShell client using psping.
- BUT they succeed when executed from the Azure environment with Azure Cloud Shell using the mysql command.
You will find below all the details about the setup of this server and how the connection was defined in MySQL Workbench. Can you please advise? Thanks, GK
> ------
>
> Service : Azure database for MySQL flexible server
> Server name : devop-myserver1.mysql.database.azure.com
> Server admin login name : devopadmin
> Server features :
>
> 1) Compute & storage :
> - Standard_B1ms is the compute resource.
> - MySQL version : 5.7
> - The server is ON
>
> 2) Networking :
> - Public access is enabled and the firewall rule allows connections from all IP addresses (from 0.0.0.0 to 255.255.255.255)
> - Public access from any Azure service within Azure to this server : ON
>
> 3) Server parameters :
> - max_user_connections : 1
> - require_secure_transport : ON
> - tls_version : TLSV1.2
> - connect_timeout : 60 seconds (rather than 10 seconds)
>
> -----
>
> My Laptop : Personal computer (PC) equipped with Windows 11
> The firewall is disabled on this computer and the antivirus firewall was disabled during the tests.
> So there are no restrictions for inbound and outbound connections from this machine.
>
> -----
>
> MySQL Workbench version installed on my laptop : 8.0
> Connection details:
> - Connection name : devopConnection
> - Connection method : Standard (TCP/IP)
> - Connections parameters :
> * Hostname : devop-myserver1.mysql.database.azure.com
> * Port : 3306
> * Username : devopadmin
> * Password : ********* (obfuscated)
> - SSL tab:
> * Use SSL : "Require"
> * SSL CA File : C:\Users\Unknown\Desktop\DigiCertGlobalRootCA.crt.pem
>
> -----
>
> ```

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
986 questions
Sign in to answer