The following topics provide recommendations for database administration and links to instructions on the MySQL website:
BMC recommends that you make a physical backup of the database data files. The output of a physical backup contains data files that the MySQL server can use directly, resulting in a faster recovery operation.
create-mysql-dump.bat
./create-mysql-dump.sh
The script creates a backup of the data in the ad-mysql-dump.sql file.
For more information about making MySQL backup files, see Database Backup Methods .
If you have issues with your database, you can recover the backed-up data file.
drop database adops_collector
drop database adops_portal
Run the following script:
restore-mysql-dump.bat
./restore-mysql-dump.sh
Restart the portal and collector services.
The database data is recovered.
For more information about how to recover the MySQL database data, see MySQL backup and recovery methods .
Data retention is set during installation of the App Visibility collector. You can change the data retention configuration anytime by changing the values of the following properties in the collector.properties file:
To re-index database tables, use the optimize tables script. Due to the way in which App Visibility works with the database, you rarely need to run this script. You should run it only if performance degrades and analysis shows that the reason is fragmented indexes.