Important: Be sure to make a backup before uninstalling License Statistics. All files will be deleted from the License Statistics installation directory during the uninstallation.
You can use automated backup and restore scripts provided with License Statistics or you may need to perform the backup and restore procedures manually, depending on your needs and your installation.
License Statistics includes the following scripts for automating backups when EMBEDDED32/EMBEDDED64 (the databases created by License Statistics) is used with default settings. Review these scripts so you are familiar with what they do and decide if they will work for your backup and restoration needs.
Script | Description |
---|---|
mysql_backup | Backs up the License Statistics database. |
mysql_restore | Restores the License Statistics database. |
mysql_start_backup_stop | Starts the MySQL databases, backs up the database, and stops the database. |
mysql_start_restore_stop | Starts the MySQL databases, restores the database, and stops the database. |
When running License Statistics using an external database that is not maintained by License Statistics, you must do manual backups instead of using the scripts. Review the scripts to ensure your manual steps do what the script does.
You must also do manual backups if you are running EMBEDDED32/EMBEDDED64 with any custom settings, such as custom database name, port, password set, or different user.
Before you begin your database backup:
The following instructions assume that you are using the License Statistics scripts to backup the database. If you are backing up the database manually, use the scripts to guide you in what is needed for manual backup, and be sure the backup includes all stored procedures and views.
To perform a backup of the License Statistics database:
Backing up the database may take a long time, depending on the volume of data in your database.
The script creates two files:
When the backup is complete:
The following instructions assume that you are using the License Statistics scripts to restore the database. If you are restoring the database manually, use the scripts to guide you in what is needed for manual restoration.
To restore the data:
Restoring the database may take a long time, depending on the volume of data in your database.
After the database is restored: