用于 MySQL 的 Azure 数据库的 Azure CLI 示例Azure CLI samples for Azure Database for MySQL

备注

将要查看的是 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.

下表包含指向示例 Azure CLI 脚本的链接,这些脚本针对用于 MySQL 的 Azure 数据库。The following table includes links to sample Azure CLI scripts for Azure Database for MySQL.

创建服务器Create a server
创建服务器和防火墙规则Create a server and firewall rule 此 Azure CLI 脚本为 MySQL 服务器创建单个 Azure 数据库,并配置服务器级防火墙规则。Azure CLI script that creates a single Azure Database for MySQL server and configures a server-level firewall rule.
缩放服务器Scale a server
缩放服务器Scale a server 此 Azure CLI 脚本可扩大或缩小用于 MySQL 服务器的单个 Azure 数据库,以允许更改性能要求。Azure CLI script that scales a single Azure Database for MySQL server up or down to allow for changing performance needs.
更改服务器配置Change server configurations
更改服务器配置Change server configurations 更改适用于 MySQL 服务器的单个 Azure 数据库配置的 Azure CLI 脚本。Azure CLI script that change configurations of a single Azure Database for MySQL server.
还原服务器Restore a server
还原服务器Restore a server 用于将单个 Azure Database for MySQL 服务器还原到前一个时间点的 Azure CLI 脚本。Azure CLI script that restores a single Azure Database for MySQL server to a previous point in time.
操作服务器日志Manipulate with server logs
启用和下载服务器日志Enable and download server logs 用于启用和下载单个 Azure Database for MySQL 服务器的服务器日志的 Azure CLI 脚本。Azure CLI script that enables and downloads server logs of a single Azure Database for MySQL server.