summaryrefslogtreecommitdiffstats
path: root/nextcloud-mysql.txt
diff options
context:
space:
mode:
authorJames Hogarth <james.hogarth@gmail.com>2017-02-21 14:30:00 +0000
committerJames Hogarth <james.hogarth@gmail.com>2017-02-21 14:30:00 +0000
commit260614d225ad68cf4bb1bc31c2480b2ccd169d56 (patch)
tree50e35459d24d7c7972e5491dd03a19bd3197ce21 /nextcloud-mysql.txt
parent3545d203eaf0f4c0bff942e50004f8785f1cd7b3 (diff)
import of srpm from review
Diffstat (limited to 'nextcloud-mysql.txt')
-rw-r--r--nextcloud-mysql.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/nextcloud-mysql.txt b/nextcloud-mysql.txt
new file mode 100644
index 0000000..1284442
--- /dev/null
+++ b/nextcloud-mysql.txt
@@ -0,0 +1,28 @@
+Configure MariaDB / MySQL for ownCloud
+======================================
+
+To use MariaDB / MySQL as database backend, you need to do the following:
+
+1. Make sure that your mysql service is configured and running properly. If this
+ is a fresh install, you will need to run "systemctl enable mysqld.service;
+ systemctl start mysqld.service" (or mariadb.service) as root. It's also
+ strongly advised to run "mysql_secure_installation" after starting the
+ database for the first time.
+
+2. Log in to the database as privileged user to create the database and a
+ dedicated user account for ownCloud:
+ $ mysql -u root -p
+ CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
+ CREATE DATABASE IF NOT EXISTS nextcloud;
+ GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';
+ Choose identifier and password accordingly.
+
+Now you can launch the ownCloud setup screen, select MySQL in the advanced
+settings and fill in your credentials.
+
+References
+==========
+
+https://fedoraproject.org/wiki/MariaDB
+https://mariadb.com/kb/en/mariadb/documentation/
+http://doc.nextcloud.org/server/7.0/admin_manual/configuration/configuration_database.html