Change Database

Discuss Technical Queries about OrangeHRM
Post Reply
Sanduni
Posts:7
Joined:Thu Jan 23, 2020 10:10 am
Change Database

Post by Sanduni » Thu Feb 20, 2020 4:00 pm

If i want to change or clear databse how can i do it?

rajitha
Posts:48
Joined:Tue Feb 11, 2020 9:54 am

Re: Change Database

Post by rajitha » Thu Feb 20, 2020 4:11 pm

Hi
Do you want to reinstall?

Sanduni
Posts:7
Joined:Thu Jan 23, 2020 10:10 am

Re: Change Database

Post by Sanduni » Fri Feb 21, 2020 4:27 am

hi,
I put dummy data to the system and i tested it. now i want to clear those data from syytem..

rajitha
Posts:48
Joined:Tue Feb 11, 2020 9:54 am

Re: Change Database

Post by rajitha » Fri Feb 21, 2020 4:49 am

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.

Post Reply