Enable innodb encryption and compression

This commit is contained in:
Daniel Winzen
2021-12-01 00:28:38 +01:00
parent 8b18bb8a61
commit c0ecb222d2
2 changed files with 26 additions and 0 deletions

View File

@ -25,3 +25,20 @@ aria_sort_buffer_size = 8M
open_files_limit = 100000
bind_address = 127.0.0.1
sql_mode=ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
plugin_load_add = file_key_management
loose_file_key_management_filename = /etc/mysql/encryption/keyfile.enc
loose_file_key_management_filekey = FILE:/etc/mysql/encryption/keyfile.key
loose_file_key_management_encryption_algorithm = AES_CTR
innodb_encrypt_tables = FORCE
innodb_encrypt_temporary_tables = ON
innodb_encrypt_log = ON
encrypt_tmp_files = ON
encrypt_tmp_disk_tables = ON
enforce_storage_engine = InnoDB
encrypt_binlog=ON
innodb_compression_default=ON
innodb_compression_algorithm=zlib
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=5
binlog_row_image = minimal
binlog_format = ROW