What is the correct syntax for using transparent data encryption with an existing InnoDB table?
What is the correct syntax for using transparent data encryption with an existing InnoDB table?
To enable transparent data encryption (TDE) on an existing InnoDB table, the correct syntax is ALTER TABLE t1 ENCRYPTION='Y';. This command modifies the table to use encryption.
To alter the encryption of an existing file-per-table tablespace, an ENCRYPTION clause must be specified. mysql> ALTER TABLE t1 ENCRYPTION = 'Y';
Run a tablespace encryption operation. In this example, a general tablespace named ts1 is encrypted. mysql> ALTER TABLESPACE ts1 ENCRYPTION = 'Y'; https://dev.mysql.com/doc/refman/8.0/en/innodb-data-encryption.html
ALTER TABLE t1 ENCRYPTION = 'Y'; B