Migrating MySQL databases during AEM Forms JEE upgrade to LTS SP2
This article explains the recommended process for migrating a MySQL database when upgrading from AEM Forms JEE SP21 or SP25 to LTS SP2, ensuring compatibility and data integrity.
Description description
Environment
- Adobe Experience Manager Forms on JEE 6.5.23.0 source environment
- Adobe Experience Manager 6.5 LTS Forms SP2 target environment
- JBoss EAP deployment
- MySQL database
- A supported operating system, JDK, MySQL version, JDBC driver, and JBoss EAP version
Issue/Symptoms
- Organizations upgrading from AEM Forms JEE SP21 or SP25 to LTS SP2 need to migrate their MySQL database.
- A direct database dump and restore is not sufficient, as it doesn’t upgrade the AEM Forms schema or migrate all required data components.
Resolution resolution
Follow the steps below to resolve the issue.
- Upgrade your existing AEM Forms JEE environment (SP21 or SP25) to the 6.5.23 Full Installer baseline.
- Prepare the target platform and MySQL environment for AEM Forms JEE LTS SP2, ensuring compatibility with the supported MySQL version for LTS SP2.
- Take a logical backup (SQL dump) of your MySQL database from the upgraded 6.5.23 environment.
- Restore the database backup into the target MySQL environment.
- Configure the target AEM Forms JEE LTS SP2 environment with the correct JBoss datasource, JDBC driver, database credentials, and other required platform configurations.
- Run Configuration Manager in upgrade mode and select ‘Initialize AEM Forms Database’ to perform the necessary schema upgrades.
- Migrate or restore GDS and CRX data as applicable to the new environment.
- Validate the migration in a cloned or parallel environment before production cutover by testing key Forms operations such as login, workflow execution, PDF generation, and document retrieval.
- Before starting migration, take full backups of both the database and the environment, and retain the old environment for rollback if issues are encountered.
recommendation-more-help
experience-cloud-kcs-help-kbarticles