Versions Compared

Key

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

...

Info

Important: All automated scripts (mysql_xxx.bat or mysql_xxx.sh) described in this document section are configured to operate on an embedded database running on with default configuration settings, as listed below. In all other cases (different configuration or external database), you must either do manual operations on the database or adjust the scripts to your custom needs.

Default settings for embedded database:

HostPortUserPasswordDatabase Name
localhost3306root
xformation_licstat


...

  1. Stop License Statistics. Backing up the database when License Statistics is running will cause the database dump to be inconsistent with the current state of 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. Execute the "mysql_start" script to launch MySQL client.
  5. After MySQL starts, execute the "mysql_backup" script. This script creates a .dump file in the directory from which the script was executed.
  6. When the backup is complete, execute the "mysql_stop" script.


Tip

You can perform steps 4-6 at the same time rather than individually by using the "mysql_start_backup_stop" script.

...

  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. 


Tip

You can perform steps 5, 7 and 8 at the same time rather than individually using the "mysql_start_restore_stop" script; however, this script will work only if the database doesn't already exist.

...