Add missing MySQL grant statements in production README

This commit is contained in:
wiz 2020-05-26 13:23:32 +09:00
parent 01ac06b096
commit 4ece586709
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -120,7 +120,20 @@ You'll need 3 instances, one for each network. Build one at a time:
Import historical mempool fee database snapshot, or the blank mariadb structure if none:
```
mysql -u root
create database mempool;
grant all on mempool.* to 'mempool'@'localhost' identified by 'mempool';
create database tmempool;
grant all on tmempool.* to 'tmempool'@'localhost' identified by 'tmempool';
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