User Tools

Site Tools


guides:farming:movedb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
guides:farming:movedb [2021/10/09 13:16] vleesbanaanguides:farming:movedb [2023/11/17 10:51] (current) – Update to v2 DB filenames, remove potentially outdated bluebox info, some formatting earl
Line 1: Line 1:
-===== How to move the Chia db to another folder=====+===== How to move the Chia DB to another folder =====
  
-While the Chia blockchain data is still relatively small in this early stage, it will continue to grow. At some point you may want to move the files to another folder. In this guide, you will learn how to change the location of your Chia blockchain data. It is also possible to move the wallet data in the same way. +While the Chia blockchain data is still relatively small in this early stage, it will continue to grow. At some pointyou may want to move the files to another folder. In this guide, you will learn how to change the location of your Chia blockchain data. It is also possible to move the wallet data in the same way. 
  
   - Make sure you stop all Chia processes first   - Make sure you stop all Chia processes first
   - Locate the data that you want to move. First, you need to navigate to the path where the blockchain and wallet data are stored. By default, this is: ''C:\Users\<YOURUSERNAME>\.chia\mainnet\''   - Locate the data that you want to move. First, you need to navigate to the path where the blockchain and wallet data are stored. By default, this is: ''C:\Users\<YOURUSERNAME>\.chia\mainnet\''
-  - Copy the folders "dband "walletand paste them in the location you want to store them, for example ''D:\Chia_Blockchain''  +  - Copy the folders ''db'' and ''wallet'' and paste them in the location you want to store them, for example ''D:\Chia_Blockchain''  
-  - Then, go back to your Chia folder ''C:\Users\<YOURUSERNAME>\.chia\mainnet\'' and navigate to the "config" folder. Here you will find the config.yaml file. Open it with your favorite text editor and change the following entries: +  - Then, go back to your Chia folder ''C:\Users\<YOURUSERNAME>\.chia\mainnet\'' and navigate to the "config" folder. Here you will find the config.yaml file. Open it with your favourite text editor and change the following entries: 
  
-^File you want to move^config.yaml entry   ^ From:   ^ To:   ^ +Changes are made using our example path ''D:\Chia_Blockchain'', but of course, you can replace this with whichever path you want to store your DB filesIt is recommended that you store the DB and wallet on an SSD.
-|Blockchain data|(under full_node:) database_path: | ''db/blockchain_v1_CHALLENGE.sqlite''''D:/Chia_Blockchain/db/blockchain_v1_CHALLENGE.sqlite''+
-|Blockchain peer table|peer_db_path:  | ''db/peer_table_node.sqlite'' | ''D:/Chia_Blockchain/db/peer_table_node.sqlite''+
-|Wallet data|(under wallet:) database_path: |''wallet/db/blockchain_wallet_v1_CHALLENGE_KEY.sqlite''|''D:/Chia_Blockchain/wallet/db/blockchain_wallet_v1_CHALLENGE_KEY.sqlite''+
-|Wallet peer table|wallet_peers_path: | ''wallet/db/wallet_peers.sqlite'' | ''D:/Chia_Blockchain/wallet/db/wallet_peers.sqlite''|+
  
-Changes are made using our example path ''D:\Chia_Blockchain'', but ofcourse you can replace this with whichever path you want to store your db files+^Database^config.yaml entry   ^ From:   ^ To:   ^ 
 +|Blockchain|full_node: database_path: | ''db/blockchain_v2_CHALLENGE.sqlite''''D:/Chia_Blockchain/db/blockchain_v2_CHALLENGE.sqlite''
 +|Blockchain peer table|full_node: peer_db_path: ''db/peer_table_node.sqlite'' | ''D:/Chia_Blockchain/db/peer_table_node.sqlite''
 +|Wallet|wallet: database_path: |''wallet/db/blockchain_wallet_v2_CHALLENGE_KEY.sqlite''|''D:/Chia_Blockchain/wallet/db/blockchain_wallet_v2_CHALLENGE_KEY.sqlite''
 +|Wallet peer table|wallet: wallet_peers_path: | ''wallet/db/wallet_peers.sqlite'' | ''D:/Chia_Blockchain/wallet/db/wallet_peers.sqlite''|
  
 +“Please do at your own risk” -Fellow Farmer
guides/farming/movedb.1633785380.txt.gz · Last modified: 2021/10/09 13:16 by vleesbanaan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki