JDisc Discovery installs the database files on c:ProgramData. How can I choose a different location?
Category:
Installation/Update
By default, Product uses the Windows ProgramData directory for storing its database. However, the ProgramData directory is by default on the C: drive which is often used for the operating system only.
Always create an archive of your existing database first before you modify any database files!
Follow the steps below in order to move the database to another location or drive.
- IMPORTANT: Create an archive of your database first!
- Stop all JDisc Discovery services (including the database service) from the services control panel
- Enable Show hidden files in the Windows file explorer
- Navigate to c:ProgramData and copy the JDisc folder to the desired location.
- Finally, we need to configure the database service to use the new location. Open regedit and navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesJDisc Discovery5.0Database. Edit the entry ImagePath and adjust the path behind the -D option. This is the path to the actual database files. It must end with db with possibly trailing backslashes.
- Reboot your server in order to use the new service settings
- Finally, we test whether everything is working fine by renaming the old directory. So just rename c:ProgramDataJDisc to c:ProgramDataJDisc.old.
- Restart the JDisc Discovery services again from the service control panel.
- Try to log-on. If you can logon, then everything works fine and you can finally delete the old database folder c:ProgramDataJDisc.old.
