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
2
Identify encrypted Aria tables.
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
Rebuild tables to decrypt.
Option A: Manual Rebuild (Single Table)
ALTER TABLE db_name.table_name ENGINE=Aria, ALGORITHM=COPY;Option B: Generate Rebuild Statements (Bulk)
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%');Last updated
Was this helpful?

