mirror of
https://github.com/mempool/mempool.git
synced 2025-01-17 18:52:34 +01:00
Fix mariadb SQL command to GRANT ALL PRIVILEGES
This commit is contained in:
parent
3e09755c47
commit
fc709058c1
12
README.md
12
README.md
@ -53,7 +53,7 @@ Create database and grant privileges:
|
|||||||
MariaDB [(none)]> create database mempool;
|
MariaDB [(none)]> create database mempool;
|
||||||
Query OK, 1 row affected (0.00 sec)
|
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)
|
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
|
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
|
## Mempool Backend
|
||||||
Install mempool dependencies from npm and build the backend:
|
Install mempool dependencies from npm and build the backend:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user