Skip to end of banner
Go to start of banner

How to Reset the Open-AudIT database

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Open-AudIT ships with a .sql file used to build the database schema. It is a simple matter to use this and reset the database.

 

NOTE - If you have changed the credentials used by Open-AudIT to access MySQL you will need to adjust the below commands.

 

Linux

mysql -u openaudit -popenauditpassword openaudit < /usr/local/open-audit/other/openaudit_mysql.sql

 

Windows

c:\xampplite\mysql\bin\mysql.exe -u openaudit -popenauditpassword openaudit < c:\xampplite\open-audit\other\openaudit_mysql.sql

 

If you would like to completely drop the database, before running the above, run the below command then run the above.

 

Linux

mysql -u root -popenauditrootuserpassword -e "drop database openaudit; create database openaudit;"

 

Windows

c:\xampplite\mysql\bin\mysql.exe -u root -popenauditrootuserpassword -e "drop database openaudit; create database openaudit;"
  • No labels