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
Location of the database folder
Selecting a new location for openLCA databases
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:):
2) find the .ini file in the openLCA program folder and open it with notepad or a similar program:
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):
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
1) create new folder in local disk (C:):
2) find the .ini file in the openLCA program folder and open it with notepad or a similar program:
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):
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
-
- Posts: 30
- Joined: 19 Sep 2014 21:31
Re: Location of the database folder
Extremely useful, many thanks.
Pascal
Pascal
Re: Location of the database folder
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!
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
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
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
-
- Posts: 1
- Joined: 13 Dec 2017 22:01
Re: Location of the database folder
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
thanks,
Guillaume
Re: Location of the database folder
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!
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!
Who is online
Users browsing this forum: No registered users and 9 guests