[Документация Yandex Cloud](../../index.md) > [Yandex Managed Service for MySQL®](../index.md) > Справочник CLI (англ.) > Overview

# yc managed-mysql

Manage MySQL clusters, hosts, databases, backups and users.

#### Command Usage

Syntax:

`yc managed-mysql <group|command>`

Aliases:

- `mysql`

#### Command Tree

- [yc managed-mysql connect](connect.md) — Connect to MySQL cluster with iam-auth

- [yc managed-mysql backup](backup/index.md) — Manage MySQL backups

  - [yc managed-mysql backup get](backup/get.md) — Show information about the specified MySQL backup

  - [yc managed-mysql backup list](backup/list.md) — List available backups

- [yc managed-mysql backup-retention-policy](backup-retention-policy/index.md) — Manage MySQL backup retention policies

  - [yc managed-mysql backup-retention-policy create](backup-retention-policy/create.md) — Create backup retention policy for the specified MySQL cluster

  - [yc managed-mysql backup-retention-policy delete](backup-retention-policy/delete.md) — Delete the specified backup retention policies

  - [yc managed-mysql backup-retention-policy list](backup-retention-policy/list.md) — List backup retention policies for the specified MySQL cluster

  - [yc managed-mysql backup-retention-policy list-by-folder](backup-retention-policy/list-by-folder.md) — List backup retention policies for all clusters in the specified folder

- [yc managed-mysql cluster](cluster/index.md) — Manage MySQL clusters

  - [yc managed-mysql cluster add-access-binding](cluster/add-access-binding.md) — Add access binding for the specified MySQL cluster

  - [yc managed-mysql cluster add-labels](cluster/add-labels.md) — Add labels to MySQL cluster

  - [yc managed-mysql cluster backup](cluster/backup.md) — Create a backup for the specified MySQL cluster

  - [yc managed-mysql cluster create](cluster/create.md) — Create MySQL cluster

  - [yc managed-mysql cluster delete](cluster/delete.md) — Delete the specified MySQL cluster

  - [yc managed-mysql cluster get](cluster/get.md) — Show information about the specified MySQL cluster

  - [yc managed-mysql cluster list](cluster/list.md) — List MySQL clusters

  - [yc managed-mysql cluster list-access-bindings](cluster/list-access-bindings.md) — List access bindings for the specified MySQL cluster

  - [yc managed-mysql cluster list-backups](cluster/list-backups.md) — List available backups for the specified MySQL cluster

  - [yc managed-mysql cluster list-logs](cluster/list-logs.md) — Retrieves logs for the specified MySQL cluster

  - [yc managed-mysql cluster list-operations](cluster/list-operations.md) — List operations for the specified MySQL cluster

  - [yc managed-mysql cluster move](cluster/move.md) — Move the specified MySQL cluster into the folder

  - [yc managed-mysql cluster remove-access-binding](cluster/remove-access-binding.md) — Remove access binding for the specified MySQL cluster

  - [yc managed-mysql cluster remove-labels](cluster/remove-labels.md) — Remove labels from MySQL cluster

  - [yc managed-mysql cluster reschedule-maintenance](cluster/reschedule-maintenance.md) — Reschedule currently planned maintenance operation.

  - [yc managed-mysql cluster restore](cluster/restore.md) — Restore MySQL cluster

  - [yc managed-mysql cluster set-access-bindings](cluster/set-access-bindings.md) — Set access bindings for the specified MySQL cluster and delete all existing access bindings if there were any

  - [yc managed-mysql cluster start](cluster/start.md) — Start the specified MySQL cluster

  - [yc managed-mysql cluster start-failover](cluster/start-failover.md) — Start manual failover for the specified MySQL cluster

  - [yc managed-mysql cluster stop](cluster/stop.md) — Stop the specified MySQL cluster

  - [yc managed-mysql cluster update](cluster/update.md) — Update the specified MySQL cluster

  - [yc managed-mysql cluster update-config](cluster/update-config.md) — Update the specified MySQL cluster config

- [yc managed-mysql database](database/index.md) — Manage MySQL databases

  - [yc managed-mysql database create](database/create.md) — Create MySQL database

  - [yc managed-mysql database delete](database/delete.md) — Delete the specified MySQL database

  - [yc managed-mysql database get](database/get.md) — Show information about the specified MySQL database

  - [yc managed-mysql database list](database/list.md) — List MySQL databases

  - [yc managed-mysql database update](database/update.md) — Update the specified MySQL database

- [yc managed-mysql hosts](hosts/index.md) — Manage MySQL cluster hosts

  - [yc managed-mysql hosts add](hosts/add.md) — Create new hosts for the cluster in the specified availability zones

  - [yc managed-mysql hosts delete](hosts/delete.md) — Delete the specified hosts

  - [yc managed-mysql hosts list](hosts/list.md) — List hosts for the specified MySQL cluster

  - [yc managed-mysql hosts update](hosts/update.md) — Update the specified hosts

- [yc managed-mysql resource-preset](resource-preset/index.md) — Manage MySQL resource presets

  - [yc managed-mysql resource-preset get](resource-preset/get.md) — Show information about the specified MySQL resource preset

  - [yc managed-mysql resource-preset list](resource-preset/list.md) — List available MySQL resource presets.

- [yc managed-mysql user](user/index.md) — Manage MySQL users

  - [yc managed-mysql user create](user/create.md) — Create a MySQL user

  - [yc managed-mysql user delete](user/delete.md) — Delete the specified MySQL user

  - [yc managed-mysql user get](user/get.md) — Show information about the specified MySQL user

  - [yc managed-mysql user grant-permission](user/grant-permission.md) — Grant permission to the specified MySQL user

  - [yc managed-mysql user list](user/list.md) — List users for the specified MySQL cluster

  - [yc managed-mysql user revoke-permission](user/revoke-permission.md) — Revoke permission from the specified MySQL user

  - [yc managed-mysql user update](user/update.md) — Update the specified MySQL user

- [yc managed-mysql v0](v0/index.md) — Manage MySQL clusters, hosts, databases, backups and users.

  - [yc managed-mysql v0 connect](v0/connect.md) — Connect to MySQL cluster with iam-auth

#### Global Flags

#|
||Flag | Description ||
|| `--profile` | `string`

Set the custom configuration file. ||
|| `--debug` | Debug logging. ||
|| `--debug-grpc` | Debug gRPC logging. Very verbose, used for debugging connection problems. ||
|| `--no-user-output` | Disable printing user intended output to stderr. ||
|| `--retry` | `int`

Enable gRPC retries. By default, retries are enabled with maximum 5 attempts.
Pass 0 to disable retries. Pass any negative value for infinite retries.
Even infinite retries are capped with 2 minutes timeout. ||
|| `--cloud-id` | `string`

Set the ID of the cloud to use. ||
|| `--folder-id` | `string`

Set the ID of the folder to use. ||
|| `--folder-name` | `string`

Set the name of the folder to use (will be resolved to id). ||
|| `--endpoint` | `string`

Set the Cloud API endpoint (host:port). ||
|| `--token` | `string`

Set the OAuth token to use. ||
|| `--impersonate-service-account-id` | `string`

Set the ID of the service account to impersonate. ||
|| `--no-browser` | Disable opening browser for authentication. ||
|| `--format` | `string`

Set the output format: text (default), yaml, json, json-rest. ||
|| `--jq` | `string`

Query to select values from the response using jq syntax ||
|| `-h`, `--help` | Display help for the command. ||
|#