Aria: Disabling Encryption
Instructions for safely disabling encryption on Aria tables, emphasizing the need to rebuild tables to an unencrypted state before removing key management plugins.
Overview
1
SET GLOBAL aria_encrypt_tables = OFF;[mysqld]
aria_encrypt_tables = OFFSET GLOBAL encrypt_tmp_disk_tables = OFF;2
SELECT TABLE_SCHEMA, TABLE_NAME
FROM information_schema.TABLES
WHERE ENGINE = 'Aria'
AND ROW_FORMAT = 'PAGE'
AND TABLE_SCHEMA NOT IN ('information_schema', 'performance_schema', 'sys')
AND (CREATE_OPTIONS LIKE '%`encrypted`=yes%' OR CREATE_OPTIONS LIKE '%`encrypted`=1%');3
ALTER TABLE db_name.table_name ENGINE=Aria, ALGORITHM=COPY;SELECT CONCAT('ALTER TABLE `', table_schema, '`.`', table_name,
'` ENGINE=Aria, ALGORITHM=COPY;') AS ddl
FROM information_schema.tables
WHERE ENGINE='Aria'
AND TABLE_SCHEMA NOT IN ('mysql','information_schema','performance_schema','sys')
AND (CREATE_OPTIONS LIKE '%`encrypted`=yes%' OR CREATE_OPTIONS LIKE '%`encrypted`=1%');4
Last updated
Was this helpful?

