> For the complete documentation index, see [llms.txt](https://docs.percona.com/percona-server/8.4/llms.txt).

# Encrypt system tablespace

By default, the system tablespace, which contains the system database and the data dictionary tables, is unencrypted. To change the encryption requires the `CREATE TABLESPACE` privilege on all tables in the instance.

In an `ALTER TABLESPCE` statement, add the `ENCRYPTION` option with the tablespace name to enable encryption.

```sql
ALTER TABLESPACE mysql ENCRYPTION='Y';
```

Disable encryption by setting the `ENCRYPTION` option to ‘N”.

```sql
ALTER TABLESPACE mysql ENCRYPTION='N';
```
