mysql

Charmed MySQL

Channel Revision Published Runs on
8.0/stable 366 31 Mar 2025
Ubuntu 22.04
8.0/stable 367 31 Mar 2025
Ubuntu 22.04
8.0/candidate 366 24 Mar 2025
Ubuntu 22.04
8.0/candidate 367 24 Mar 2025
Ubuntu 22.04
8.0/beta 366 11 Mar 2025
Ubuntu 22.04
8.0/beta 367 11 Mar 2025
Ubuntu 22.04
8.0/edge 371 31 Mar 2025
Ubuntu 22.04
8.0/edge 370 31 Mar 2025
Ubuntu 22.04
juju deploy mysql --channel 8.0/stable
Show information

Platform:

Ubuntu
22.04

charms.mysql.v0.s3_helpers

S3 helper functions for the MySQL charms.


def upload_content_to_s3(
    content: str,
    content_path: str,
    s3_parameters: Dict
)

Uploads the provided contents to the provided S3 bucket.

Arguments

content

The content to upload to S3

content_path

The path to which to upload the content

s3_parameters

A dictionary containing the S3 parameters The following are expected keys in the dictionary: bucket, region, endpoint, access-key and secret-key

def list_backups_in_s3_path(s3_parameters: Dict)

Retrieve subdirectories in an S3 path.

Arguments

s3_parameters

A dictionary containing the S3 parameters The following are expected keys in the dictionary: bucket, path, region, endpoint, access-key and secret-key

def fetch_and_check_existence_of_s3_path(
    path: str,
    s3_parameters
)

Checks the existence of a provided S3 path by fetching the object.

Arguments

s3_parameters

A dictionary containing the S3 parameters The following are expected keys in the dictionary: bucket, region, endpoint, access-key and secret-key

path

The path to check the existence of

def ensure_s3_compatible_group_replication_id(
    group_replication_id: str,
    s3_parameters
)

Checks if group replication id is equal to the one in the provided S3 repository.

Arguments

group_replication_id

group replication id of the current cluster

s3_parameters

A dictionary containing the S3 parameters The following are expected keys in the dictionary: bucket, region, endpoint, access-key and secret-key

Description

If S3 doesn't have this claim (so it's not initialized), then it will be populated automatically with the provided id.