Below is the step by step how to accessing MySQL that hosts on Azure using Azure Portal (in my example, I’m installed WordPress + Mysql + docker, maybe some steps will be different)

  1. Login to Azure portal (
  2. Klik All Resources
  3. Klik on Network Security Group

  4. Scroll to right, find Inbound security rule

  5. Klik Add

  6. Enter your rule name, enter MySQL Port in Destination Port Range then save

  7. Wait until the Azure system save the setting and try access your MySQL Server from your favorite MySQL Editor
  8. Done.