Skip to content

Commit

Permalink
Remove all references to SQL tables import
Browse files Browse the repository at this point in the history
fixes #1045
  • Loading branch information
softsimon committed Jan 5, 2022
1 parent 7dca8ae commit 24f76f2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.
3 changes: 1 addition & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ help:
.PHONY: init
init:
@echo ''
mkdir -p $(DATA) $(DATA)/mysql $(DATA)/mysql/db-scripts $(DATA)/mysql/data
install -v mariadb-structure.sql $(DATA)/mysql/db-scripts
mkdir -p $(DATA) $(DATA)/mysql $(DATA)/mysql/data
#REF: https://github.com/mempool/mempool/blob/master/docker/README.md
cat docker/docker-compose.yml > docker-compose.yml
cat backend/mempool-config.sample.json > backend/mempool-config.json
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ Create database and grant privileges:
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
Install mempool dependencies from npm and build the backend:

Expand Down
7 changes: 1 addition & 6 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
In an empty dir create 2 sub-dirs

```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:

```bash
Expand All @@ -23,9 +21,6 @@ data mysql
data db-scripts

./mysql/data:

./mysql/db-scripts:
mariadb-structure.sql
```

In the main dir add the following `docker-compose.yml`
Expand Down
9 changes: 1 addition & 8 deletions production/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ You'll need 3 instances, one for each network. Build one at a time:

### MariaDB

Import historical mempool fee database snapshot, or the blank mariadb structure if none:
Import historical mempool fee database snapshot:
```
mysql -u root
create database mempool;
Expand All @@ -200,13 +200,6 @@ create database lmempool;
grant all on lmempool.* to 'lmempool'@'localhost' identified by 'lmempool';
```

Then import
```
mysql -u mempool -p mempool < /mempool/mempool/mariadb-structure.sql
mysql -u tmempool -p tmempool < /mempool/mempool/mariadb-structure.sql
mysql -u lmempool -p lmempool < /mempool/mempool/mariadb-structure.sql
```

### Mempool

After all 3 electrs instances are fully indexed, install your 3 mempool nodes:
Expand Down

0 comments on commit 24f76f2

Please sign in to comment.