Page 1 of 1

Location of the database folder

Posted: 04 Feb 2015 23:29
by pascal.lesage
Hi,

In a Windows install, the default the database directory is created in the local user profile. Is it possible to move that database to another folder on the C drive?

Thanks
Pascal

Selecting a new location for openLCA databases

Posted: 06 Feb 2015 15:52
by SWinter
as per default, the databases created in/imported to openLCA are saved in a folder under "Users". To set a new location for the database start by creating a new file on the C drive where you want to have the data saved in the future. Then, you can edit the "openLCA.ini" file contained in the openLCA folder with a text editor (e.g. Notepad, etc.) to direct the databases there by adding two new lines (as shown below).

1) create new folder in local disk (C:):
Image

2) find the .ini file in the openLCA program folder and open it with notepad or a similar program:
Image

3) change the file by adding two new lines. first line: '-olcaDataDir' (not olcaDatDir as in original post, edited by ac 14 Dec 17); second line: 'full directory path of new folder'. The directory can't be only C:\, it needs to be in a folder (e.g. C:\openlca):
Image

Then, all new databases will be saved in the new folder. If other databases are already saved in Users, simply copy and paste them into the new folder. Then restart openLCA.

Hope this is helpful.

All the best,
Sarah

Re: Location of the database folder

Posted: 06 Feb 2015 17:28
by pascal.lesage
Extremely useful, many thanks.
Pascal

Re: Location of the database folder

Posted: 28 Oct 2016 21:25
by goOpen
Sorry for necrobumping, but I think it is relevant and this thread shows up as first result in search engines:

How is the above achievable in a Linux environment?

Tried the openLCA.ini but this yields a crash on startup.

Thanks a lot!

Re: Location of the database folder

Posted: 24 Nov 2017 11:44
by algae_tom
Hello,

Bringing this thread back again :p

I want to set my path to another drive, but when I follow the above instructions but setting the folder as F:\OpenLCA\databases OpenLCA completely ignores me and sticks with the default in C:\

Any idea of a way around this?

Thanks,
Tom

Re: Location of the database folder

Posted: 13 Dec 2017 22:06
by gmajeaubettez
I have the same issue as goOpen and algae_tom: I would wish to set the path to the database on linux (e.g., /shared/databases), but my '-olcaDatDir' entry in openLCA.ini just seems to be ignored. An example of how to set this up on another drive than "C:" would be most useful.

thanks,
Guillaume

Re: Location of the database folder

Posted: 14 Dec 2017 11:55
by aciroth
Hi all,
sorry this doesn't work because of a typo in the older post: it should be -olcaDataDir.
See also here: viewtopic.php?f=26&t=31909
I will edit the old post.
Thanks!