mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
grant minimal sql privileges instead of granting all of them (fix #648)
This commit is contained in:
@@ -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::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user