]> git.mxchange.org Git - friendica.git/commitdiff
Update Install.md
authorErich <erichbschulz@gmail.com>
Sun, 1 May 2022 05:01:13 +0000 (15:01 +1000)
committerGitHub <noreply@github.com>
Sun, 1 May 2022 05:01:13 +0000 (15:01 +1000)
include instructions for db config

doc/Install.md

index 8bbfdd99ce2fa5bd29e155a8d37f6f5dd61f2e07..8d52c1c11ac609df080abc2f016ee906461a6f30 100644 (file)
@@ -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 '<<your mysql password here>>';
+    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.