Page 1 of 1

Change Database

Posted: Thu Feb 20, 2020 4:00 pm
by Sanduni
If i want to change or clear databse how can i do it?

Re: Change Database

Posted: Thu Feb 20, 2020 4:11 pm
by rajitha
Hi
Do you want to reinstall?

Re: Change Database

Posted: Fri Feb 21, 2020 4:27 am
by Sanduni
hi,
I put dummy data to the system and i tested it. now i want to clear those data from syytem..

Re: Change Database

Posted: Fri Feb 21, 2020 4:49 am
by rajitha
If your using clone from OrangeHRM Github repository, there are some development tools.
i.e. https://github.com/orangehrm/orangehrm/blob/master/devTools/general/reinstall.php
You can run this script to reinstall the instance.

But if you using production build of OrangeHRM from Sourceforge, you have to manually delete <OrangeHRM_root_dir>/lib/confs/Conf.php and reinstall OrangeHRM as usual. If you don't want the old database you have to delete it manually. Finally, clear symfony cache to clear old database connection cache.