1
0
Fork 0

Update Install.md

include instructions for db config
This commit is contained in:
Erich 2022-05-01 15:01:13 +10:00 committed by GitHub
parent 18c642f2a7
commit d255c3128e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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.