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 custom SQL statements on the database can result in data loss or corruption. Run this procedure only when requested to do so by X-Formation Support. |
...
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 using the following procedure:
- Create a backup of your database.
- Stop License Statistics.
- Open a terminal/console in administration mode.
- Go to mysql in the License Statistics installation directory.
For Windows:
Code Block language bash cd C:\Program Files\X-Formation\License Statistics\mysql
For Linux:
Code Block language bash cd /usropt/xflicstat/mysql
For Windows:
Code Block language bash mysql_start.bat
For Linux:
Code Block language bash sh mysql_start.shbin
- Execute the SQL script delivered to you by X-Formation Support.
For Windows:
Code Block language bash mysqlxflicstat-cli.exe storage apply -hlocalhost -uroot xformation_licstat <-confirm [download_file_directory]\script.sql
For Linux:
Code Block language bash mysql -hlocalhost -uroot xformation_licstat <./xflicstat-cli storage apply --confirm [download_file_directory]/script.sql
For Windows:
For Linux:Code Block language bash mysql_stop.bat
Code Block language bash sh mysql_stop.sh
- Start License Statistics.
Running a custom SQL script on an external database
...