Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: girlbtc.com on September 30, 2016, 01:10:10 AM



Title: how to change the bitcoin core 's block's dir?
Post by: girlbtc.com on September 30, 2016, 01:10:10 AM
how to change the bitcoin core 's  blockchain data dir?


thx


Title: Re: how to change the bitcoin core 's block's dir?
Post by: girlbtc.com on September 30, 2016, 01:10:37 AM
with bitcoin core in windows


Title: Re: how to change the bitcoin core 's block's dir?
Post by: girlbtc.com on September 30, 2016, 01:11:05 AM
any config or command ? thx a lot


Title: Re: how to change the bitcoin core 's block's dir?
Post by: achow101 on September 30, 2016, 01:12:27 AM
See https://achow101.com/2016/07/Bitcoin-Core-Troubleshooting#windows-startup except don't remove the option after the startup.

The option you want to use is
Code:
-datadir=<path>
where <path> is the path to the new datadir.




Stop posting consecutively like that. Just make edits to your first post.


Title: Re: how to change the bitcoin core 's block's dir?
Post by: girlbtc.com on September 30, 2016, 01:19:18 AM
See https://achow101.com/2016/07/Bitcoin-Core-Troubleshooting#windows-startup except don't remove the option after the startup.

The option you want to use is
Code:
-datadir=<path>
where <path> is the path to the new datadir.




Stop posting consecutively like that. Just make edits to your first post.

I am in windows ,how to change the <path>  like c:\bitcoin\bitcoindata

and how to get current dir?

thx a lot


Title: Re: how to change the bitcoin core 's block's dir?
Post by: achow101 on September 30, 2016, 01:26:01 AM
I am in windows ,how to change the <path>  like c:\bitcoin\bitcoindata
The path is C:\bitcoin\bitcoindata

The option you would add is
Code:
-datadir=C:\bitcoin\bitcoindata

and how to get current dir?
Open it in windows explorer (the file explorer). Just click the top bar and it should give you the path to the folder.


Title: Re: how to change the bitcoin core 's block's dir?
Post by: girlbtc.com on September 30, 2016, 01:28:05 AM
https://i.imgur.com/c3obJKU.png


Title: Re: how to change the bitcoin core 's block's dir?
Post by: achow101 on September 30, 2016, 01:29:07 AM
Go to the second tab. Should be in there.


Title: Re: how to change the bitcoin core 's block's dir?
Post by: girlbtc.com on September 30, 2016, 01:33:16 AM
https://i.imgur.com/HhKQtqU.png  not found anywhere to edit the dir


Title: Re: how to change the bitcoin core 's block's dir?
Post by: achow101 on September 30, 2016, 01:34:09 AM
Are you clicking on the shortcut or the exe file directly? You should be editing the properties of the shortcut, not the exe.


Title: Re: how to change the bitcoin core 's block's dir?
Post by: girlbtc.com on September 30, 2016, 01:35:56 AM
https://i.imgur.com/RP2sl6X.png

this one


Title: Re: how to change the bitcoin core 's block's dir?
Post by: achow101 on September 30, 2016, 01:39:04 AM
this one
That's the exe file, not the shortcut. Typically people have a shortcut on their desktop that they use to start Bitcoin Core. That is what should be edited.

Anyways, since apparently that is too hard for you to do, in the same folder you are in right now, deselect everything (click in the big empty white area under those files) and then hold Shift and right click. You should see an option that says "Open command window here". Click that. Then type
Code:
bitcoin-qt.exe -choosedatadir
and hit enter. This will start Bitcoin Core. You should see a dialog box appear that asks you to choose the datadir. Choose it and continue. Now, everytime you start Bitcoin Core, it will use whatever datadir you set in that dialog.


Title: Re: how to change the bitcoin core 's block's dir?
Post by: girlbtc.com on September 30, 2016, 01:55:27 AM
https://i.imgur.com/pFdEMrU.png

done  thx a lot