Versions Compared

Key

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

The information on this page refers to License Statistics v6.18 and newer, which introduced the CLI. If you are using an earlier version of License Statistics, please refer to the documentation for previous releases. 


Warning

Executing

Warning

It's potentially dangerous to execute custom SQL statements on the database and can lead to result in data loss or corruption. Run this procedure only when requested to do so by X-Formation Support.

Info
We To avoid data loss or corruption, we recommend that you make a backup of always back up your database before before performing any operations in order to avoid data loss or corruption.

...

on the database.

About running a custom SQL script

In rare cases, X-Formation Support

...

may ask you to run a custom SQL script to fix

...

problems

...

with the database.

...

You can run a custom SQL script on either an embedded database or an external database, as described below. All commands shown in the examples below use the default installation path. Adjust the commands to reflect your environment

...

as necessary.

...

Running a custom SQL script

...

You If you are using an embedded MySQL database, you can run a custom SQL script by using the following the procedure:

  1. Create a backup of your database.
  2. Stop License Statistics.
  3. Open a terminal/console in administration mode. 
  4. Go to the mysql in the License Statistics installation directory. 
    • For Windows:

      Code Block
      languagebash
      cd C:\Program Files\X-Formation\License Statistics\mysql


    • For Linux:

      Code Block
      languagebash
      cd /opt/x-formation/licstat/mysql
    Start embedded MySQL database using the mysql_start script

    Windows

    Code Block
    languagebash
    mysql_start.bat

    Linux

    Code Block
    languagebash
    sh mysql_start.sh
    • xflicstat/bin


  5. Execute the SQL script delivered to you Execute SQL script delivered by X-Formation Support.
    • For Windows:

      Code Block
      languagebash
      mysqlxflicstat-cli.exe storage apply -hlocalhost -uroot xformation_licstat <-confirm [download_file_directory]\script.sql


    • For Linux:

      Code Block
      languagebash
      mysql -hlocalhost -uroot xformation_licstat <./xflicstat-cli storage apply --confirm [download_file_directory]/script.sql
    Stop embedded MySQL database using the mysql_stop script
    • Windows

      Code Block
      languagebash
      mysql_stop.bat

      Linux

      Code Block
      languagebash
      sh mysql_stop.sh


  6. Start License Statistics

Running custom SQL script on EXTERNAL database

...