Skip to main content
Install TDP and restore MariaDB into C:\MariaDBData after its path rules are active.

Install the TDP agent

1
Extract the endpoint bundle on the MariaDB host.
2
Open Manage computer certificates. Under Local Computer, import trust.p7b into Trusted Root Certification Authorities.
The CryptoHub REST certificate builds a valid chain to the imported trust anchor and matches the endpoint hostname.
3
Run installer.msi as an administrator. Keep the required TDP features selected and retain certificate and hostname validation.
4
Complete the installation and restart Windows when prompted.
5
Confirm the TDP services are running:
Both services report Running.
6
Open the PKM log directory and confirm the agent fetched both C:\MariaDBData rules with the expected key group:
Do not initialize or restore MariaDB until the policy log contains both rules, the assigned key group, and the exact MariaDB service identity. Files written before policy is active remain clear.

Create a logical backup

The examples use MariaDB 11.4 under C:\Program Files\MariaDB 11.4. Replace that path for another installed build.
1
Create a logical backup while the existing server is running:
Replace <admin> with a MariaDB administrative account. The command prompts for its password.
C:\mariadb-all.sql exists and the command reports no failed database objects.
The logical dump contains clear database content. Restrict its ACL and remove it after restore and verification succeed.

Initialize the protected destination

1
Stop MariaDB and create the destination:
2
Grant the service identity full control:
Replace NT SERVICE\MariaDB if sc.exe qc MariaDB reports a customized account.
3
Initialize MariaDB through the active TDP policy:
The command creates C:\MariaDBData\my.ini and the MariaDB system database without errors.
4
Update the Windows service to use the new option file:
5
Start MariaDB and confirm its effective directory:
The query returns C:\MariaDBData\.

Restore the database

1
Restore the logical backup through the running MariaDB service:
The restore completes without failed objects, and the MariaDB service remains Running.
2
Continue to the verification procedure. Remove the logical dump securely only after the whole-tree scan, service restart, and reboot checks pass.
Do not copy the old data directory into C:\MariaDBData. TDP encrypts on write, so a copied tree can remain clear even when it is located under a path rule.