Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

License Statistics includes the following scripts for automating backups when the database created by License Statistics EMBEDDED64 is used with default settings (or EMBEDDED32 for versions older than 4.19.1). Review these scripts so you are familiar with what they do, and decide if they will work for your backup and restoration needs.

ScriptDescription
mysql_startStarts the MySQL database.
mysql_stopStops the MySQL database.
mysql_backupBacks up the License Statistics database.
mysql_restoreRestores the License Statistics database.
mysql_start_backup_stopStarts the MySQL database, backs up the database, and stops the database.
mysql_start_restore_stopStarts the MySQL database, restores the database, and stops the database.

...

  1. Stop License Statistics. Restoring the database when License Statistics is running will cause the state of the database to be inconsistent with monitored data.
  2. Open a command prompt with full administrator permissions.
  3. Navigate to the database folder named mysql under the License Statistics Directory.
  4. Start the MySQL database using the mysql_start script.
  5. If the database already exists, drop it before attempting the restore by running mysql_clean.bat, and finally mysql_stop.bat.
  6. Put the saved database dump in the mysql directory under the License Statistics installation directory.
  7. Restore the database using the mysql_restore script.  
  8. Run mysql_stop in order to shut down the MySQL database.
  9. As an alternative, you can use the mysql_start_restore_stop script to start, restore and stop the database all in one step.

...