快速入门:使用 MySQL Workbench 连接到 Azure Database for MySQL 并查询其中的数据Quickstart: Use MySQL Workbench to connect and query data in Azure Database for MySQL
11/23/2020
本文内容
备注
将要查看的是 Azure Database for MySQL 的新服务。You are viewing the new service of Azure Database for MySQL. 若要查看经典 MySQL Database for Azure 的文档,请访问此页。To view the documentation for classic MySQL Database for Azure, please visit this page.
本快速入门演示如何使用 MySQL Workbench 应用程序连接到 Azure Database for MySQL。This quickstart demonstrates how to connect to an Azure Database for MySQL using the MySQL Workbench application.
先决条件Prerequisites
此快速入门使用以下任意指南中创建的资源作为起点:This quickstart uses the resources created in either of these guides as a starting point:
重要
确保已使用 Azure 门户或 Azure CLI 将服务器的防火墙规则添加到连接的 IP 地址Ensure the IP address you're connecting from has been added the server's firewall rules using the Azure portal or Azure CLI
安装 MySQL WorkbenchInstall MySQL Workbench
在计算机上从 MySQL 网站下载并安装 MySQL Workbench。Download and install MySQL Workbench on your computer from the MySQL website.
获取连接信息Get connection information
获取连接到 Azure Database for MySQL 所需的连接信息。Get the connection information needed to connect to the Azure Database for MySQL. 需要完全限定的服务器名称和登录凭据。You need the fully qualified server name and login credentials.
在 Azure 门户的左侧菜单中,单击“所有资源”,然后搜索已创建的服务器(例如 mydemoserver)。From the left-hand menu in Azure portal, click All resources, and then search for the server you have created (such as mydemoserver).
单击服务器名称。Click