QMetry Reports Upgrade to MySQL v8.0.33 Report DB Container (compatible with QMetry v8.14.x & above)
Pre-requisite
Ensure that QMetry is not in use and there are no ongoing operations or traffic on QMetry.
Steps
→ In Case of Offline Installation
Follow the steps to download and restore the QMetry Report Database image. After the image is successfully restored, you can then move forward with the next steps.
Step 1. Extract ReportDBUpgrade.zip
Copy the ReportDBUpgrade.zip file received from QMetry Support to the server where both the QMetry Report DB and Report Application container are located. Navigate to the directory where this file is kept, and execute the following command.
unzip ReportDBUpgrade.zip
The following process will create a backup of the data from the MySQL 5.7.28 container in the same directory where the master_reports.sh script is run. Please ensure there is a sufficient amount of disk space on this location to accommodate reports DB data. Next, a new container for the database will be set up, running on MySQL v8.0.33. Finally, the backed-up data will be restored into the new MySQL v8.0.33 container.
Step 2. Execute the following commands
cd ReportDBUpgrade
sudo su
chmod +x master_report.sh
sh master_report.sh
Next, the installation process will prompt you with the following questions.
Options | Default Value | Description |
Do you have QMetry's report container running on this machine? (Y/N): | Y | Mention “Y” if QMetry's report container running on the same machine. |
Enter name of QMetry report's container (qmetry-reports): | qmetry-reports | Enter the QMetry Report application container name. |
Do you have Report's database container running on this machine? (Y/N): | Y | Mention “Y” if Report's database container running on the same machine. |
Enter name of Report's database container (qmetry-reports-db): | qmetry-reports-db | Enter the QMetry Report Database container name. |
Note: This process may take time depending on the amount of data in the database.
Step 3. Update Configurations
After the import is complete, it will ask for the input to update the Configurations. Refer to this page for input questions.
Whichever fields have changed (i.e. QMetry App/Report Database Host or Database Ports), enter those updated values in the input fields.
To continue with the old value for a particular field, press the ENTER/RETURN button on the keyboard to skip the input.
Notes: The new Report Database will be accessible on port 3306 by default. As the data is already in the synced state, mention “N” when asked for the force sync.
Steps to upgrade Reports to the latest version
Follow the document https://qmetrysupport.atlassian.net/wiki/spaces/QTMSv816/pages/3541053277 to upgrade to the latest version.