grant minimal sql privileges instead of granting all of them (fix #648)

This commit is contained in:
Louis-Philippe Véronneau
2018-03-16 16:17:08 -04:00
parent 6c29626cbd
commit 0d98b043c3

View File

@@ -82,7 +82,7 @@ Then a **mysql>** or **MariaDB [root]>** prompt will appear. Now enter the follo
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES ON nextcloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';
You can quit the prompt by entering::