az mariadb db
Manage MariaDB databases on a server.
Name | Description | Type | Status |
---|---|---|---|
az mariadb db create |
Create a MariaDB database. |
Core | GA |
az mariadb db delete |
Delete a database. |
Core | GA |
az mariadb db list |
List the databases for a server. |
Core | GA |
az mariadb db show |
Show the details of a database. |
Core | GA |
Create a MariaDB database.
az mariadb db create --name
--resource-group
--server-name
[--charset]
[--collation]
Create database 'testdb' in the server 'testsvr' with the default parameters.
az mariadb db create -g testgroup -s testsvr -n testdb
Create database 'testdb' in server 'testsvr' with a given character set and collation rules.
az mariadb db create -g testgroup -s testsvr -n testdb --charset {valid_charset} --collation {valid_collation}
The name of the database.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
The charset of the database.
The collation of the database.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Delete a database.
az mariadb db delete --name
[--ids]
[--resource-group]
[--server-name]
[--subscription]
[--yes]
Delete database 'testdb' in the server 'testsvr'.
az mariadb db delete -g testgroup -s testsvr -n testdb
The name of the database.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
List the databases for a server.
az mariadb db list --resource-group
--server-name
List databases in the server 'testsvr'.
az mariadb db list -g testgroup -s testsvr
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the Server.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Show the details of a database.
az mariadb db show --name
[--ids]
[--resource-group]
[--server-name]
[--subscription]
Show database 'testdb' in the server 'testsvr'.
az mariadb db show -g testgroup -s testsvr -n testdb
The name of the database.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI feedback
Azure CLI is an open source project. Select a link to provide feedback: