MiningCore Setup Tutorial on Windows 10
This guide walks you through setting up MiningCore on a Windows 10 machine step-by-step. Follow these instructions to get your mining pool operational quickly and efficiently.
Important Notes
- • During PostgreSQL installation, you do not need to install StackBuilder
- • Ensure your coin's node is fully synced before launching the pool
- • Replace all placeholder values with your actual configuration
Install PostgreSQL
Download and install PostgreSQL 10 or the latest version from the official website.
https://www.postgresql.org/download/Launch pSQL Shell
- Open the Windows search bar and type
psql - Launch the pSQL Shell
- Login using the credentials you set during PostgreSQL installation:
- Username:
postgres(default) - Password: (the one you set during install)
- Username:
Create Database Role and Schema
In the pSQL Shell, run the following commands (replace myPassword with your actual password):
CREATE ROLE miningcore WITH LOGIN ENCRYPTED PASSWORD 'myPassword'; CREATE DATABASE miningcore OWNER miningcore;
Run Database Setup Scripts
Locate the following files on your PC:
createdb.sqlcreatedb_postgresql_11_appendix.sql
Then, in the pSQL Shell, run these commands (replace with actual paths):
\i c:/Users/YourUser/Desktop/miningcore/src/Miningcore/Persistence/Postgres/Scripts/createdb.sql \i c:/Users/YourUser/Desktop/miningcore/src/Miningcore/Persistence/Postgres/Scripts/createdb_postgresql_11_appendix.sql
Create Pool Table
For each coin you setup, create a partition of the shares table:
CREATE TABLE shares_coinName PARTITION OF shares FOR VALUES IN ('coinName');🔁 Replace coinName with your desired coin identifier (e.g., btc, eth).
Configure the Pool
- Go to your MiningCore
builddirectory - Create a
coinName.jsonconfig file for your coin - Inside the config file:
- Ensure
"logFile"and"apiLogFile"under"logging"are filled in - Example:
coinName_core.log,coinName_api.log
- Ensure
Create a Startup Batch File
In your MiningCore root directory, create a .bat file with the following content (adjust for your coin name):
cd build ./Miningcore -c coinName.json
All Done!
MiningCore is now set up and ready to go!
Remember to ensure your coin's node is fully synced before launching the pool. Happy mining! ⛏️