Fix mariadb SQL command to GRANT ALL PRIVILEGES

This commit is contained in:
wiz 2021-01-12 20:49:18 +09:00 committed by GitHub
parent 3e09755c47
commit fc709058c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ Create database and grant privileges:
MariaDB [(none)]> create database mempool;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> grant all privileges on mempool.* to 'mempool' identified by 'mempool';
MariaDB [(none)]> grant all privileges on mempool.* to 'mempool'@'%' identified by 'mempool';
Query OK, 0 rows affected (0.00 sec)
```
@ -62,16 +62,6 @@ From the mempool repo's top-level folder, import the database structure:
mysql -u mempool -p mempool < mariadb-structure.sql
```
### Troubleshooting
On Mac, you may need to run the following command if the above gives an error:
```bash
MariaDB [(none)]> grant all privileges on mempool.* to 'mempool'@localhost identified by 'mempool';
```
followed by:
```bash
mariadb -u mempool -pmempool mempool < mariadb-structure.sql
```
## Mempool Backend
Install mempool dependencies from npm and build the backend: