Hi abdulraheem,
Thanks for reaching out to Microsoft Q&A.
You are trying to connect to a MySQL database on an Azure Virtual Machine using MySQL Workbench from your local Ubuntu system, but you're encountering an error. The error message mentions that it cannot connect to the database server and refers to potential issues with rights, the MySQL server address, and port reachability.
- SSH into your Azure VM and check if MySQL is running
- MySQL, by default, listens on
localhost
(127.0.0.1). To allow remote connections, ensure that the the server is bound to the correct IP address - Make sure the user you are using (
mdsteogust
in this case) has access from remote machines - Ensure that port
3306
(default MySQL port) is open for inbound traffic in the NSG settings of your azure vm - Once the steps above are completed, go back to MySQL Workbench and use the public IP of your azure vm in the connection settings
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.