---
title: Charmhub | Deploy Charmed MySQL K8s using Charmhub - The Open Operator Collection
description: Deploy the latest version of Charmed MySQL K8s as a Kubernetes Operator
  on any cloud.
url: https://charmhub.io/mysql-k8s/configurations
---

# Charmed MySQL K8s

[Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")

* [Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")
* [Databases](https://charmhub.io/?filter=databases)

Platform:

8.0/stable 423

```
juju deploy mysql-k8s --channel 8.0/stable --trust
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [binlog\_retention\_days](https://charmhub.io/mysql-k8s/configurations#binlog_retention_days)
* [cluster-name](https://charmhub.io/mysql-k8s/configurations#cluster-name)
* [cluster-set-name](https://charmhub.io/mysql-k8s/configurations#cluster-set-name)
* [experimental-max-connections](https://charmhub.io/mysql-k8s/configurations#experimental-max-connections)
* [logs\_audit\_policy](https://charmhub.io/mysql-k8s/configurations#logs_audit_policy)
* [logs\_retention\_period](https://charmhub.io/mysql-k8s/configurations#logs_retention_period)
* [mysql-interface-database](https://charmhub.io/mysql-k8s/configurations#mysql-interface-database)
* [mysql-interface-user](https://charmhub.io/mysql-k8s/configurations#mysql-interface-user)
* [mysql-root-interface-database](https://charmhub.io/mysql-k8s/configurations#mysql-root-interface-database)
* [mysql-root-interface-user](https://charmhub.io/mysql-k8s/configurations#mysql-root-interface-user)
* [plugin-audit-enabled](https://charmhub.io/mysql-k8s/configurations#plugin-audit-enabled)
* [plugin-audit-strategy](https://charmhub.io/mysql-k8s/configurations#plugin-audit-strategy)
* [profile](https://charmhub.io/mysql-k8s/configurations#profile)
* [profile-limit-memory](https://charmhub.io/mysql-k8s/configurations#profile-limit-memory)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* binlog\_retention\_days | int

  Default: 7

  Number of days for binary logs retention
* cluster-name | string

  Optional - Name of the MySQL InnoDB cluster, set once at deployment
* cluster-set-name | string

  Optional - Name for async replication cluster set, set once at deployment.
  On `recreate-clster` action call, the cluster set name will be re-generated automatically.
* experimental-max-connections | int

  Maximum number of connections allowed to the MySQL server.
  When set max-connections value take precedence over the memory utilizations
  againts innodb\_buffer\_pool\_size.
  This is an experimental feature and may be removed in future releases.
* logs\_audit\_policy | string

  Default: logins

  Audit log policy. Allowed values are: "all", "logins" (default), "queries".
  Ref. at https://docs.percona.com/percona-server/8.0/audit-log-plugin.html#audit\_log\_policy
* logs\_retention\_period | string

  Default: auto

  Specifies the retention period for rotated logs, in days. Accepts an integer value of 3 or
  greater, or the special value "auto". When set to "auto" (default), the retention period is
  3 days, except when COS-related, where it is 1 day
* mysql-interface-database | string

  The database name for the legacy 'mysql' interface
* mysql-interface-user | string

  The database username for the legacy 'mysql' interface
* mysql-root-interface-database | string

  The database name for the legacy 'mysql' interface (root level access)
* mysql-root-interface-user | string

  The database username for the legacy 'mysql' interface (root level access)
* plugin-audit-enabled | boolean

  Default: True

  Audit log plugin state. When the plugin is enabled (default, audit logs will be enabled).
* plugin-audit-strategy | string

  Default: async

  Audit log plugin strategy. Allowed values are: "semi-async" and "async".
  Ref. at https://docs.percona.com/percona-server/8.0/audit-log-plugin.html#audit\_log\_strategy
* profile | string

  Default: production

  Profile representing the scope of deployment, and used to be able to enable high-level
  customisation of sysconfigs, resource checks/allocation, warning levels, etc.
  Allowed values are: “production” and “testing”.
* profile-limit-memory | int

  Amount of memory in Megabytes to limit MySQL and associated process to.
  If unset, this will be decided according to the default memory limit in the selected profile.
  Only comes into effect when the `production` profile is selected.
