Author

Topic: Change location of database. (Read 1038 times)

donator
Activity: 2058
Merit: 1054
December 27, 2012, 01:24:08 PM
#4
The blockchain is stored in the data directory, which can be configured with the datadir parameter. For example:
Code:
"C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe" -datadir="E:\Data\Bitcoin"
Note that the wallet file is also stored in the data directory.

Symlinks may also be of use to you.

so that command will change the database to sit on the E: drive? 
If you run Bitcoin with this command (as opposed to running it without this parameter), it will look for the database in the E:\Data\Bitcoin directory, and as necessary download it to that directory.

How you use it exactly depends on your exact setup, but assuming you have a Windows machine and a shortcut that points to "C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe", and you want the database to reside in E:\Data\Bitcoin (or any other directory), you should:

1. Move your already existing database to E:\Data\Bitcoin.
2. Change the shortcut to point to "C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe" -datadir="E:\Data\Bitcoin".
legendary
Activity: 2044
Merit: 1000
December 27, 2012, 01:07:47 PM
#3
The blockchain is stored in the data directory, which can be configured with the datadir parameter. For example:
Code:
"C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe" -datadir="E:\Data\Bitcoin"
Note that the wallet file is also stored in the data directory.

Symlinks may also be of use to you.

so that command will change the database to sit on the E: drive? 
donator
Activity: 2058
Merit: 1054
December 27, 2012, 01:02:06 PM
#2
The blockchain is stored in the data directory, which can be configured with the datadir parameter. For example:
Code:
"C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe" -datadir="E:\Data\Bitcoin"
Note that the wallet file is also stored in the data directory.

Symlinks may also be of use to you.
legendary
Activity: 2044
Merit: 1000
December 27, 2012, 12:58:40 PM
#1
I thought I wanted to move my .dat file......I was mistaken.

I want to change the location where the blockchain is stored.  I am running out of room on my SSD, but have gobs of network storage. 

Can anyone give me a quick guide to changing where the database is stored? 
Jump to: