Kriptikz / ore-hq-server

32 stars 43 forks source link

Failed to get database pool connection #5

Open zuoye520 opened 2 months ago

zuoye520 commented 2 months ago

Hello, I have installed mysql 8.0.39 Running ./ore-hq-server reports the following error:

loaded wallet E6roDAojsUAzXXXXXXXXXXXXXXXXXXXX
establishing rpc connection...
loading sol balance...
Balance: 0.12
Validating pool exists in db
thread 'main' panicked at src/main.rs:230:13:
Failed to get database pool connection
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

.env is configured as follows:

WALLET_PATH = "~/id.json"
RPC_URL = "https://xxxxxxxxxx"
PASSWORD = "xxxxx"
DATABASE_URL = "localhost"

How can I solve this problem?

Kriptikz commented 2 months ago

This project is currently using a mysql database to record the miner and pool data. You will need to use a mysql database url for it to work.

zuoye520 commented 2 months ago

该项目目前使用 mysql 数据库来记录矿工和矿池数据。您需要使用 mysql 数据库 URL 才能使其工作。

This project is currently using a mysql database to record the miner and pool data. You will need to use a mysql database url for it to work.

Does mysql have any version requirements?

yanpengfei-git commented 2 months ago

This project is currently using a mysql database to record the miner and pool data. You will need to use a mysql database url for it to work.

How is this database connected without setting an account and password in the configuration file