Partajați prin


Azure CLI samples for Azure Database for MySQL

APPLIES TO: Azure Database for MySQL - Single Server

Important

Azure Database for MySQL single server is on the retirement path. We strongly recommend that you upgrade to Azure Database for MySQL flexible server. For more information about migrating to Azure Database for MySQL flexible server, see What's happening to Azure Database for MySQL Single Server?

The following table includes links to sample Azure CLI scripts for Azure Database for MySQL.

Sample link Description
Create a server
Create a server and firewall rule 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 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 Azure CLI script that change configurations of a single Azure Database for MySQL server.
Restore a server
Restore a server Azure CLI script that restores a single Azure Database for MySQL server to a previous point in time.
Manipulate with server logs
Enable server logs Azure CLI script that enables server logs of a single Azure Database for MySQL server.