Versions Compared

Key

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

...

Script for WindowsScript for LinuxDescription
mysql_start.batmysql_start.shStarts the MySQL database.
mysql_stop.batmysql_stop.shStops the MySQL database.
mysql_backup.batmysql_backup.shBacks up the License Statistics database.
mysql_restore.batmysql_restore.shRestores the License Statistics database.
mysql_start_backup_stop.batmysql_start_backup_stop.shStarts, backs up, and stops the MySQL database.
mysql_start_restore_stop.batmysql_start_restore_stop.shStarts, restores, and stops the the MySQL database.
mysql_clean.batmysql_clean.shDrops (removes) the License Statistics database.


Info
Note: You may not be able to run the scripts as a normal user on Windows due to Windows limitations, so be sure to run the scripts as an administrator (see http://technet.microsoft.com/en-en/library/cc947813(v=ws.10).aspx for instructions on starting a command prompt as an administrator).

...

  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 installation directory.
  4. Put the saved database dump in the "mysql" directory.
  5. Start the MySQL database using the "mysql_start" script.
  6. If the database already exists, drop it before attempting the restore by running "mysql_clean"."
  7. Restore the database using the "mysql_restore" script.
  8. Run the "mysql_stop" script to shut down the MySQL database. 

...