Skip to content

Commit

Permalink
removed innodb_read_only_compressed config
Browse files Browse the repository at this point in the history
  • Loading branch information
sleif committed Oct 30, 2023
1 parent b30f729 commit 6340080
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
mode: '0644'
loop:
- {option: 'max_connections', value: '{{ mariadb_container_max_connections }}'}
- {option: 'innodb_read_only_compressed', value: 'off'}
# - {option: 'innodb_read_only_compressed', value: 'off'}

# mysql -u root -p --batch --skip-column-names -e 'SELECT CONCAT("ALTER TABLE ",TABLE_SCHEMA,".",TABLE_NAME," ROW_FORMAT=DYNAMIC;")
# from INFORMATION_SCHEMA.TABLES where CREATE_OPTIONS LIKE "row_format=compressed" AND ENGINE="InnoDB"' > /tmp/m2
# cat /tmp/m2 | mysql -u root -p

- name: Start MariaDB container for {{ MYSQL_DATABASE }}
community.general.docker_container:
Expand Down Expand Up @@ -61,7 +65,7 @@
name: "Daily dump of mariadb {{ MYSQL_DATABASE }}"
minute: "11"
hour: "*/4"
job: "docker exec {{ MYSQL_CONTAINER_NAME }} sh -c 'exec mysqldump --lock-tables --all-databases --user=root --password={{ MYSQL_ROOT_PASSWORD }}' >
job: "docker exec {{ MYSQL_CONTAINER_NAME }} sh -c 'exec mariadb-dump --lock-tables --all-databases --user=root --password={{ MYSQL_ROOT_PASSWORD }}' >
{{ container_storage_dir_base_backup }}/{{ MYSQL_CONTAINER_NAME }}_backups/{{ MYSQL_CONTAINER_NAME }}.sql;
bzip2 -f {{ container_storage_dir_base_backup }}/{{ MYSQL_CONTAINER_NAME }}_backups/{{ MYSQL_CONTAINER_NAME }}.sql"
tags:
Expand Down

0 comments on commit 6340080

Please sign in to comment.