Connect to Azure Database for MySQL from Mac
Use your Azure Database for MySQL server hostname and a MySQL account to connect.
Before you start
Section titled “Before you start”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.
Find your connection details
Section titled “Find your connection details”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”- Open a new connection and set Driver to MySQL.
- Enter the full server hostname in Host and the supplied Port.
- Fill in Database, User, and Password.
- Set SSL Mode to Verify Full.
- Select a Root CA file if your server’s connection instructions require one.
- Click Test, then Save & Connect after success.
TLS and private DNS
Section titled “TLS and private DNS”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.
If it does not connect
Section titled “If it does not connect”Access denied for userSecure connection required by serverFor 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.