To restore the database to a specific point in time:
- Stop the RiskVision Tomcat service.
- Go to the following back up directory:
%AGILIANCE_HOME%\backup
> cd %AGILIANCE_HOME%\MySQL\bin
Extract all the files and directories from the
-YYYYMMDDhhmmss.zip
backup file, including the database backup file -mysqldump- YYYYMMDDhhmmss.sql
. Select the backup file with a timestamp YYYYMMDDhhmmss that is closest to the time that you want to restore.- Open command prompt and change the directory to the location as given in the following command:
> cd %AGILIANCE_HOME%\MySQL\bin
Import the MySQL dump file with the following command:
mysql –u
root
–p
rootpassword
--database <%AGILIANCE_HOME%\backup\-YYYYMMDDhhmmss\mysqldump-YYYYMMDDhhmmss.sql
MySQL supports point-in-time recovery, which can be used to restore the database to a more specific point in time. However, this procedure is more complicated and must be performed only by an experienced MySQL DBA.
If a table is not created after completing the backup, run the following commands to ensure a full and smooth backup:
mysql –uroot –prootpassword
drop database agiliance;
create database agiliance;
exit;mysql –uroot –prootpassword
< mysqldump-
YYYYMMDDhhmmss
.sql
If you have excluded tables from the normal back up process (see Ignoring Database Tables During Backup), run the following command:
mysql –uroot –p
rootpassword
<IgnoredTableName
.sqlRepeat this command for each ignored table specified in tableList for the
IgnoredTableNames
parameter in theagiliance.properties
file. The initial default configuration includes the agl_auditlog table in the list ofRiskVision.default.system.properties
settings.Execute the MySQL post installation scripts.
Note: When importing a database dump file from one server to another, you may encounter errors due to definer attributes remaining from the previous server. The post installation scripts will resolve this issue.
- After the complete restoration of the database, start the RiskVision Tomcat service.
agiliance
. Refer to the procedures described in Property and Configuration File Settings for more information on changing default MySQL usernames and passwords.