From d255c3128ec0f76a4a2a3607194384ef2aed7b24 Mon Sep 17 00:00:00 2001 From: Erich Date: Sun, 1 May 2022 15:01:13 +1000 Subject: [PATCH 1/2] Update Install.md include instructions for db config --- doc/Install.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/Install.md b/doc/Install.md index 8bbfdd99ce..8d52c1c11a 100644 --- a/doc/Install.md +++ b/doc/Install.md @@ -102,7 +102,18 @@ If you encounter a bug, please let us know. ### Create a database -Create an empty database and note the access details (hostname, username, password, database name). +Create an empty database and note the access details (hostname, username, password, database name). +Generate a strong password, then enter mysql with: + + mysql + +Then use the following script using the password you just generated: + + CREATE DATABASE friendicadb; + CREATE USER 'friendica'@'localhost' IDENTIFIED BY '<>'; + GRANT ALL ON friendicadb.* TO 'friendica'@'localhost' WITH GRANT OPTION; + FLUSH PRIVILEGES; + EXIT; Friendica needs the permission to create and delete fields and tables in its own database. From c938eb50028042c40c903c20b2ad19bbbe042ec5 Mon Sep 17 00:00:00 2001 From: Erich Date: Sun, 1 May 2022 22:09:00 +1000 Subject: [PATCH 2/2] Update doc/Install.md fix by @MrPetovan Co-authored-by: Hypolite Petovan --- doc/Install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Install.md b/doc/Install.md index 8d52c1c11a..733c8109b0 100644 --- a/doc/Install.md +++ b/doc/Install.md @@ -111,7 +111,7 @@ Then use the following script using the password you just generated: CREATE DATABASE friendicadb; CREATE USER 'friendica'@'localhost' IDENTIFIED BY '<>'; - GRANT ALL ON friendicadb.* TO 'friendica'@'localhost' WITH GRANT OPTION; + GRANT ALL ON friendicadb.* TO 'friendica'@'localhost'; FLUSH PRIVILEGES; EXIT;