...
Info |
---|
We recommend that you make a backup of your database before performing any operations in order to avoid data loss or corruption. |
Initial statements
- In rare cases, X-Formation Support can ask to run a custom SQL script to fix some problems in the database.
- All example commands shown below are using the default installation path. Adjust the commands to your environment if necessary.
- More details about using mysql_* scripts delivered with License Statistics are available on the Backing up and restoring an embedded database page.
Running custom SQL script on EMBEDDED database
...
- Create a backup of your database.
- Stop License Statistics.
- Open terminal/console in administration mode.
- Go to the mysql directory in the License Statistics installation directory. All example commands described below should be executed in this directory.
Windows
Code Block language bash cd C:\Program Files\X-Formation\License Statistics\mysql
Linux
Code Block language bash cd /opt/x-formation/licstat/mysql
- Start embedded MySQL database using the mysql_start script
Windows
Code Block language bash mysql_start.bat
Linux
Code Block language bash sh mysql_start.sh
- Execute SQL script delivered by X-Formation Support
Windows
Code Block language bash mysql.exe -hlocalhost -uroot xformation_licstat < [download_file_directory]\script.sql
Linux
Code Block language bash mysql -hlocalhost -uroot xformation_licstat < [download_file_directory]/script.sql
- Stop embedded MySQL database using the mysql_stop script
Windows
Code Block language bash mysql_stop.bat
Linux
Code Block language bash sh mysql_stop.sh
- Start License Statistics.
Running custom SQL script on
...
EXTERNAL database
If you are using an external database (recommended), you need to perform the same steps as described above for an embedded database, but with paths and credentials adjusted to your environment.