Ok, I found a workaround for the time being:
- use "az webapp create-remote-connection" to create an SSH connection to the web app instance
- ssh into the instance
- apt-get install mariadb-client
This is less than ideal but will work for now
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have created a web app with a MySQL database (web app + database in Azure Marketplace), and everything is working fine. I have successfully deployed a PHP "Hello World" code. Now, I want to connect to the MySQL database using MySQL Workbench. So, I went to the flexible server and clicked on "Connect" to determine the connection parameters.
I went to the "Networking" section to download the SSL certificate as instructed (for your information, in the Networking section, everything is grayed out, and I am unable to add anything as shown in the image).
I have configured the connection with MySQL Workbench.
When I try to connect, I receive the famous error message.
I'm not sure why it's still trying to connect to localhost despite entering the server name as indicated in Azure (in the Connect section).
However, I'm open to exploring alternative solutions to connect to my MySQL database and explore it myself, as well as for developers.
thanks for your help.
Ok, I found a workaround for the time being:
This is less than ideal but will work for now
I want to let you know that it works when I create a new Azure Database for MySQL flexible server independently of the Web App, and I have access to the Networking of the database to add my IP address to the firewall, enable external connections, etc. So, I'm not sure why it doesn't work when it's created directly with the Web App.
Hi Morsi •,
Welcome to Microsoft Q&A forum and thanks for using Azure Services.
As I understand, you could not open Azure Database for MySQL through MySQL Workbench.
Could you please let us know what Network configuration is selected while creation of this flexible server?
Also refer to the below mentioned Youtube video for reference if this helps:
Connect & Query Azure Database for MySQL Flexible Server using MySQL Workbench
Thanks