JavaScript must be enabled in order to use this site.
Please enable JavaScript in your browser and refresh the page.
Migrating Certificate Data in MySQL in Tethered mode
The following procedure is applicable for
5.3.1 to 5.4.1
5.3.1 to 5.5.0
5.4.1 to 5.5.0
Prerequisites
Complete the data migration as soon as the new TML cluster is deployed, otherwise new certificates or identities created in the new TML cluster are overwritten by data migration.
Procedure
To dump MySQL data from the old TML cluster, run the following command against a
tml-sql pod in the old TML cluster:
kubectl exec mysql-set-0-0 -- mysqldump --no-create-info --complete-insert --single-transaction -u root -p'changeme' masherysolar trust_store identity_store > mash531_data.sql
To copy MySQL data file that is dumped from the old TML cluster to each
tml-sql pod in the new TML cluster, run the following command:
kubectl cp mash531_data.sql mysql-set-0-0:/tmp
The
mysql-set-0-0 is the
tml-sql pod in the new TML cluster.
To import MySQL data dumped from the old TML cluster to the new TML cluster, run the following command in each tml-sql pod in the new TML cluster:
mysql -u root -p'changeme' -e "truncate table masherysolar.trust_store"
mysql -u root -p'changeme' -e "truncate table masherysolar.identity_store"
mysql -u root -p'changeme' masherysolar < /tmp/mash531_data.sql
To run the SQL loader in
sql pods in the new TML Cluster, run the following command in each
tml-sql pod to run the sql loader:
/opt/sqlloader/onpremloader --service --mapi --devclass --packager --httpsclientsecurity --env production --verbose
To refresh Cache in the new TML Cluster, run the following command in each
tml-cache pod in the new TML cluster:
/opt/javaproxy/proxy/cacheloader --service --mapi --devclass --packager --httpsclientsecurity --env production --verbose
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.