Skip to content

Connect to Azure Database for MySQL from Mac

Use your Azure Database for MySQL server hostname and a MySQL account to connect.

Have the database name, database credentials, and the server’s network access requirements. For private access, your Mac needs a route to the private network and working DNS resolution.

Copy the full hostname and port from the server’s connection information in Azure. Use the database user name supplied for that server.

For public access, confirm that the server firewall permits your client’s public IP address. For private access, connect to the required VPN or other private route first.

Connect to Azure Database for MySQL from Mac

Section titled “Connect to Azure Database for MySQL from Mac”
  1. Open a new connection and set Driver to MySQL.
  2. Enter the full server hostname in Host and the supplied Port.
  3. Fill in Database, User, and Password.
  4. Set SSL Mode to Verify Full.
  5. Select a Root CA file if your server’s connection instructions require one.
  6. Click Test, then Save & Connect after success.

Azure Database for MySQL uses TLS by default. Keep certificate verification enabled and use the server hostname; see Azure’s TLS guidance for current certificate requirements.

SSL/TLS settings explains the certificate fields. If you use an SSH tunnel, confirm that the SSH server can resolve and reach the database hostname.

Access denied for user
Secure connection required by server

For a timeout on a public server, check the firewall’s allowed client IP. On a private server, check DNS resolution and the private route. For a rejected login, compare the exact user name with the server’s connection information.

Use error 1045, TLS certificate errors, or connection troubleshooting for the corresponding failure.

Continue with browse and search, or return to the MySQL overview.