...
NOTE - If you have changed the credentials used by Open-AudIT to access MySQL you will need to adjust the below commands.
Recreate Database
Linux
Code Block |
---|
mysql -u openaudit -popenauditpassword openaudit < /usr/local/open-audit/other/openaudit_mysql.sql |
...
Code Block |
---|
c:\xampplite\mysql\bin\mysql.exe -u openaudit -popenauditpassword openaudit < c:\xampplite\open-audit\other\openaudit_mysql.sql |
Completely Delete Database and Recreate
If you would like to completely drop the database, run the below commands.
...
Code Block |
---|
c:\xampplite\mysql\bin\mysql.exe -u root -popenauditrootuserpassword -e "drop database openaudit; create database openaudit;" c:\xampplite\mysql\bin\mysql.exe -u openaudit -popenauditpassword openaudit < c:\xampplite\open-audit\other\openaudit_mysql.sql |
Backup the Database
Linux
Code Block |
---|
mysqldump -u openaudit -popenauditpassword --extended-insert=FALSE openaudit > /tmp/openaudit_mysql.sql |
...
Code Block |
---|
c:\xampplite\mysql\bin\mysqldump.exe -u openaudit -popenauditpassword openaudit > c:\temp\openaudit_mysql.sql |
Restore the Database
Linux
Code Block |
---|
mysql -u openaudit -popenauditpassword openaudit < /tmp/openaudit_mysql.sql |
...