From 3e09755c47c1e01ee8bfcdf832a1f40d404d0b97 Mon Sep 17 00:00:00 2001 From: ~timluc-miptev <65034141+timlucmiptev@users.noreply.github.com> Date: Mon, 11 Jan 2021 20:44:45 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 621fb4a06..b79bd5c6f 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,16 @@ 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: From fc709058c185311c066fcdb47c5637f5f16ce4f9 Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 12 Jan 2021 20:49:18 +0900 Subject: [PATCH 2/2] Fix mariadb SQL command to GRANT ALL PRIVILEGES --- README.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/README.md b/README.md index b79bd5c6f..0fa6495bc 100644 --- a/README.md +++ b/README.md @@ -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: