mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 05:12:35 +01:00
Merge pull request #1087 from mempool/simon/removing-sql-import-references
Remove all references to SQL tables import
This commit is contained in:
commit
5de133ae6a
@ -25,8 +25,7 @@ help:
|
|||||||
.PHONY: init
|
.PHONY: init
|
||||||
init:
|
init:
|
||||||
@echo ''
|
@echo ''
|
||||||
mkdir -p $(DATA) $(DATA)/mysql $(DATA)/mysql/db-scripts $(DATA)/mysql/data
|
mkdir -p $(DATA) $(DATA)/mysql $(DATA)/mysql/data
|
||||||
install -v mariadb-structure.sql $(DATA)/mysql/db-scripts
|
|
||||||
#REF: https://github.com/mempool/mempool/blob/master/docker/README.md
|
#REF: https://github.com/mempool/mempool/blob/master/docker/README.md
|
||||||
cat docker/docker-compose.yml > docker-compose.yml
|
cat docker/docker-compose.yml > docker-compose.yml
|
||||||
cat backend/mempool-config.sample.json > backend/mempool-config.json
|
cat backend/mempool-config.sample.json > backend/mempool-config.json
|
||||||
|
@ -69,11 +69,6 @@ Create database and grant privileges:
|
|||||||
Query OK, 0 rows affected (0.00 sec)
|
Query OK, 0 rows affected (0.00 sec)
|
||||||
```
|
```
|
||||||
|
|
||||||
From the mempool repo's top-level folder, import the database structure:
|
|
||||||
```bash
|
|
||||||
mysql -u mempool -p mempool < mariadb-structure.sql
|
|
||||||
```
|
|
||||||
|
|
||||||
## Mempool Backend
|
## Mempool Backend
|
||||||
Install mempool dependencies from npm and build the backend:
|
Install mempool dependencies from npm and build the backend:
|
||||||
|
|
||||||
|
@ -5,11 +5,9 @@
|
|||||||
In an empty dir create 2 sub-dirs
|
In an empty dir create 2 sub-dirs
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir -p data mysql/data mysql/db-scripts
|
mkdir -p data mysql/data
|
||||||
```
|
```
|
||||||
|
|
||||||
In the `mysql/db-scripts` sub-dir add the `mariadb-structure.sql` file from the mempool repo
|
|
||||||
|
|
||||||
Your dir should now look like that:
|
Your dir should now look like that:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -23,9 +21,6 @@ data mysql
|
|||||||
data db-scripts
|
data db-scripts
|
||||||
|
|
||||||
./mysql/data:
|
./mysql/data:
|
||||||
|
|
||||||
./mysql/db-scripts:
|
|
||||||
mariadb-structure.sql
|
|
||||||
```
|
```
|
||||||
|
|
||||||
In the main dir add the following `docker-compose.yml`
|
In the main dir add the following `docker-compose.yml`
|
||||||
|
@ -240,7 +240,7 @@ You'll need one instance per network. Build and run them one at a time:
|
|||||||
|
|
||||||
### MariaDB
|
### MariaDB
|
||||||
|
|
||||||
Import historical mempool fee database snapshot, or the blank mariadb structure if none:
|
Import historical mempool fee database snapshot:
|
||||||
```
|
```
|
||||||
mysql -u root
|
mysql -u root
|
||||||
create database mempool;
|
create database mempool;
|
||||||
@ -255,6 +255,7 @@ create database mempool_liquidtestnet;
|
|||||||
grant all on mempool_liquidtestnet.* to 'mempool_liquidtestnet'@'localhost' identified by 'mempool_liquidtestnet';
|
grant all on mempool_liquidtestnet.* to 'mempool_liquidtestnet'@'localhost' identified by 'mempool_liquidtestnet';
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Bisq
|
### Bisq
|
||||||
|
|
||||||
Build bisq-statsnode normally and run using options like this:
|
Build bisq-statsnode normally and run using options like this:
|
||||||
|
Loading…
Reference in New Issue
Block a user